-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Script with "beforeInteractive" strategy and innerHTML rendered incorrectly. #26240
Labels
bug
Issue was opened via the bug report template.
Comments
lxsmnsyc
changed the title
Script with "beforeInteractive" strategy and innerHTML not being pre-rendered correctly.
Script with "beforeInteractive" strategy and innerHTML rendered incorrectly.
Jun 17, 2021
This was referenced Jun 19, 2021
This comment has been minimized.
This comment has been minimized.
Probably it's because of facebook/react#13838 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
11.0.0
What version of Node.js are you using?
15.4.0
What browser are you using?
Chrome
What operating system are you using?
Windows
How are you deploying your application?
next dev
Describe the Bug
Scripts with
"beforeInteractive"
strategy anddangerouslySetInnerHTML
or inlined script incorrectly renders scripts in SSR.Code:
Output (notice the
src(unknown)
Codesandbox: https://codesandbox.io/s/github/LXSMNSYC/next-script-beforeinteractive-repro
Expected Behavior
It should correctly render the scripts on server-side.
To Reproduce
Reproduction mentioned and linked above
The text was updated successfully, but these errors were encountered: