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

fix: dev mode rendering two hydration scripts #1031

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

edivados
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • infrastructure changes
  • Other... Please describe:

What is the current behavior?

ProdScripts does not check mode like DevScripts and is added in dev.

What is the new behavior?

Only add prod scripts in prod.

Other information

fixes #1011

@edivados edivados changed the title fix: do not add prod scripts in dev fix: dev mode rendering two hydration scripts Aug 29, 2023
@ryansolid
Copy link
Member

ryansolid commented Aug 30, 2023

I see thanks.. I guess this was part of Nikhil's refactor. It's odd way to author it. I would have done the check on the outside if I were him. In any case thanks for the fix.

@ryansolid ryansolid merged commit f351f42 into solidjs:main Aug 30, 2023
9 checks passed
@edivados edivados deleted the double-hydration branch August 30, 2023 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug?]: Dev mode renders two <HydrationScript/>s
2 participants