3 ms·
>which had bidirectional data flow, and when one updated the store, it would trigger a change to the UI, which would change the state store, which would change
by wooque 11mo ago
>which had bidirectional data flow, and when one updated the store, it would trigger a change to the UI, which would change the state store, which would change the UI, etc.
You can hit the same problem with React. Circular state updates. State change->trigger useEffect->change state. I hit those when I had just started React.
- lmm 11mo agoYou can, but it's harder, React will at least nudge you away from doing that.