3 ms·
It's not meant to thwart adversarial cases or situations where programmers are trying to "trick" strict mode. It's a safety net for those who know the "rules" o
by dymk 5y ago
It's not meant to thwart adversarial cases or situations where programmers are trying to "trick" strict mode. It's a safety net for those who know the "rules" of react, but still might accidentally introduce side effects and want to catch it.
- brundolf 5y agoEven just as a safety-net, there's precedent for this. Golang intentionally randomizes hashmap key iteration order to prevent people from relying on it: https://stackoverflow.com/questions/9619479/go-what-determines-the-iteration-order-for-map-keys#9621526 https://stackoverflow.com/questions/9619479/go-what-determin...