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

Safely recover connected pages after deployment #413

Closed
leandrocp opened this issue Feb 14, 2024 · 1 comment
Closed

Safely recover connected pages after deployment #413

leandrocp opened this issue Feb 14, 2024 · 1 comment

Comments

@leandrocp
Copy link
Contributor

Users get a "Not Found" error message after a page reconnects, while they should see the updated content.

Steps to reproduce:
1 - Open a page and keep it open
2 - Deploy the site

The page should reconnect gracefully and display the updated content (some configuration may have changed after the new deployment), but instead they see a "Not Found" error message.

That happens because the loading process is async and the moment LiveView reconnects and tries to render the page process, that page may have not been loaded yet (not ready) so it fallbacks to displaying an error page.

Making the loading process sync brings some issues, the main one is demanding too much resources and crashing the BEAM, so we need to find a way to recover such connected pages but not all of them.

Related to #400

@leandrocp
Copy link
Contributor Author

Closed by #434

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