Skip to content
This repository was 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
luisherranz merged 1 commit intomain-full-vdom-hydrationfrom
dont-destroy-scripts
Sep 20, 2022
Merged

⚛️ Fix hydration when there are scripts in the top of the body#71
luisherranz merged 1 commit intomain-full-vdom-hydrationfrom
dont-destroy-scripts

Conversation

@luisherranz
Copy link
Copy Markdown
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
Copy Markdown
Member Author

Also fixed in the Query Loop block experiment:

Copy link
Copy Markdown
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