2 ms·
Yep it can be a useful pattern, but it must be in a conditional to stop an infinite loop. This useful guide points it out as well: https://blog.isquaredsoftwar
by aeroaero 4y ago
Yep it can be a useful pattern, but it must be in a conditional to stop an infinite loop.
This useful guide points it out as well: https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-mostly-complete-guide-to-react-rendering-behavior/#setting-state-while-rendering https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-...