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

Use Case: Live Reload with loading error handling in development #274

Open
jkrems opened this issue Aug 1, 2021 · 0 comments
Open

Use Case: Live Reload with loading error handling in development #274

jkrems opened this issue Aug 1, 2021 · 0 comments

Comments

@jkrems
Copy link

jkrems commented Aug 1, 2021

I didn't see any mention while skimming existing docs: I'm interested in portals for use in a development server. The idea would be to prepare a full page reload in a portal and show UI feedback to developers on the current version of the page. If the reload fails (or takes too long), the dev server runtime in the browser could either retry or alert the developer that something's wrong.

The only existing options (outside of portals) I'm aware of are:

  1. Use location.reload(). If something goes wrong, the developer has a broken tab and it can't be fixed without human intervention.
  2. Move the app permanently into <iframe>s during development which may interfere with the actual content and requires full control of the initial page load to work well.
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