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
{{ message }}
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
setState is synchronous in componentDidMount. setGlobal should mimic that behavior. It's just a matter of it being possible in all implementations.
You can likely find details from the React team on why setState is synchronous sometimes. I'd love to link it, but I'm restricted to mobile for a little longer as I'm in the process of moving.
I'm not sure this is related, but I've noticed that when I setGlobal in componentDidMount (after async fetching of data), it sometimes does not cause the page to render.
I have to use a callback and force update:
Also did update and set global callback
Async elsewhere
The text was updated successfully, but these errors were encountered: