You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an update happens before useIsomorphicLayoutEffect is triggered, where listener is added, the dispatch of consumer will not be called(because listener has not been added yet). And it will stay at the old state forever.
The text was updated successfully, but these errors were encountered:
As far as I understand, child effects fire before parent effect, so should be fine?
Is it theoretical, or can you create a repro? I might be misunderstanding something.
If an update happens before useIsomorphicLayoutEffect is triggered, where listener is added, the
dispatch
of consumer will not be called(because listener has not been added yet). And it will stay at the old state forever.The text was updated successfully, but these errors were encountered: