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
Currently setLoading is shared with the redux store initialization and the server-status check.
If any one of them passes, the app renders.
So you can have:
possibility that the server is down, but redux initialized successfully, so no "loading.." will occur unless 'error' flag is also set quickly.
Even worse, the server-status check completes really fast, before redux store is initialized, and the app tries to acces useState for example before the store is up. (Ask me how i know 😉)
Better to split the two, have two flags and check for both.
The text was updated successfully, but these errors were encountered:
Vasant79
added a commit
to Vasant79/SocialEcho
that referenced
this issue
Feb 17, 2024
SocialEcho/client/src/AppContainer.jsx
Line 46 in 4dc6c78
SocialEcho/client/src/AppContainer.jsx
Line 28 in 4dc6c78
SocialEcho/client/src/AppContainer.jsx
Line 53 in 4dc6c78
Currently setLoading is shared with the redux store initialization and the server-status check.
If any one of them passes, the app renders.
So you can have:
Better to split the two, have two flags and check for both.
The text was updated successfully, but these errors were encountered: