Skip to content

React in the UI after an exception in initialization #109

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

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy