Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

⚛️ Fix hydration when there are scripts in the top of the body #71

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

luisherranz
Copy link
Member

@DAreRodz and I just discovered that hydration could fail if there are <script> tags at the top of the <body>, so instead of destroying them we can just return an empty <script>.

@luisherranz
Copy link
Member Author

Also fixed in the Query Loop block experiment:

Copy link
Collaborator

@DAreRodz DAreRodz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved! 👍

@luisherranz luisherranz merged commit 2891264 into main-full-vdom-hydration Sep 20, 2022
@luisherranz luisherranz deleted the dont-destroy-scripts branch September 20, 2022 10:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants