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

svelte:component disappears inside catch blocks #5259

Closed
WaltzingPenguin opened this issue Aug 12, 2020 · 1 comment · Fixed by #5261
Closed

svelte:component disappears inside catch blocks #5259

WaltzingPenguin opened this issue Aug 12, 2020 · 1 comment · Fixed by #5261
Labels

Comments

@WaltzingPenguin
Copy link

Describe the bug
If svelte:component is used inside a :catch block, updating the class on a surrounding wrapper element causes error/svelte:component to disappear.

To Reproduce
https://svelte.dev/repl/a0047276119343d6a7c0298532bbdcb2?version=3.24.1
Click the "Dismiss" button

Expected behavior
In the above REPL, I would expect the "Dismiss" button to still be on the screen and inside of a red box.

Severity
Prevents lazy loading error handling pages. Easy to work around, just increases bundle size.

@Conduitry
Copy link
Member

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

Successfully merging a pull request may close this issue.

3 participants