Single spa tries to unmount the the app which is not mounted due to API issues on first load #1223
Unanswered
vishaltambekar2212
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello team, I have shell with the root which also have the single spa addErrorHandler and I can see the errors being handle like LOAD_Error and others. Now on the first load of the module if the API call failed then addErrorHandler handle this error as the microfront is broken and throws error. I have handled the error with redirecting the user to separate module which has the maintainance page. But now post that redirection I can see the error as "Cannot read properties of undefined (reading '$destroy')". Can we suppress this unmount from the single spa as the module is not mounted at the first place and got the error.
Please go through the screenshot for the same.
Screenshot 1: Redirected to maintanance page but got this error
Screenshot 2: Redirection is working on the back
Screenshot 3: Error handler but which handles the error but later it shows error in first screenshot
Beta Was this translation helpful? Give feedback.
All reactions