-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
bug when hydrating with error boundary #2539
Comments
Same issue. |
@the-fedorr That sounds very much like you're using React instead of Preact. We don't have that string anywhere in our codebase. |
You're right, sorry. |
Hi, I am hydrating server rendered html and have an error boundary to handle client rendering errors. I am observing that if a component throws during hydration, both the original HTML and the "error" HTML are visible. You can reproduce the issue by opening the HTML below in a browser. You can uncomment the imports for react instead of preact to see the expected behavior.
Steps to reproduce
Expected Behavior
After hydration, "Hello, World!" should be replaced with "Error!" because the App component throws. When using the react imports instead of the preact imports in the file above, I see the expected behavior.
Actual Behavior
I see both "Hello, World!" and "Error!" below it.
The text was updated successfully, but these errors were encountered: