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
Notice that no error pop-up appears, even though a 404 error should be displayed
Root Cause
In the AppController component, setPostPopUp() is called in a useEffect hook, but this happens after the file loading attempt. Any errors that occur during file loading won't show a UI pop-up because the pop-up function reference hasn't been updated in the contextStore yet.
Proposed Solution
Move the setPostPopUp() call before loading a file to ensure that error pop-ups can be displayed for any errors during the file loading process.
Description
When attempting to load a non-existent file, the application should display an error pop-up, but currently nothing is shown.
Reproduction Steps
Root Cause
In the AppController component,
setPostPopUp()
is called in a useEffect hook, but this happens after the file loading attempt. Any errors that occur during file loading won't show a UI pop-up because the pop-up function reference hasn't been updated in the contextStore yet.Proposed Solution
Move the
setPostPopUp()
call before loading a file to ensure that error pop-ups can be displayed for any errors during the file loading process.References
cc @junhaoliao
The text was updated successfully, but these errors were encountered: