Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React in the UI after an exception in initialization #109

Open
jeffgca opened this issue Jan 6, 2023 · 0 comments
Open

React in the UI after an exception in initialization #109

jeffgca opened this issue Jan 6, 2023 · 0 comments

Comments

@jeffgca
Copy link
Contributor

jeffgca commented Jan 6, 2023

We recently has an issue in WAT where loading of the app failed and this exception was raised:

Error: Could not decode CID: {"/":"bafkreifyss2n2jex7l5x2rkeyjnx4uhoatmxw2zvdndkioirru3vc2mina"}
    Immutable 25
    <anonymous> https://webnative-template.fission.app/:17
_layout.svelte-5b2610bc.js:1:1777
    Immutable 16
    <anonymous> https://webnative-template.fission.app/:17

It's quite possible that a developer could write some code in their app that also raises a similar catastrophic exception in app initialization. When the above error happened, the app UI got stuck on an infinite spinner. I would like to do the following instead:

1/ if debug=true, we change the UI to show the exception raised in gory detail.

2/ else we show a generic error route.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant