Since getDervivedStateFromProps
is called before every render, I assume the state is guaranteed to be updated synchronously before the render (i.e. it will not get batched with other setState
calls like a normal setState
call potentially would?)
In other words, any updates that occur in getDerivedStateFromProps
are guarantee to be reflected in the following render
?