You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hydration mismatch related to Mantine script being added to head and body #1917
I installed Mantine in a new Router/Start app and noticed the script that's rendered by Mantine's ColorSchemeScript component is being injected into both the head and body causing the following error:
Expected server HTML to contain a matching <script> in <div>
The setup is basically the same as the Remix example, which is injecting the Mantine script only in the head as expected.
I believe this issue has been resolved after the Html, Head, and Body components were removed. I created a new example based on the original reproduction, updated the dependencies and Start-related files, and moved the ColorSchemeScript into the head and I no longer see the hydration error. The Mantine script only appears in the head now as expected.
Thanks for all your hard work on Router and Start! It's a pleasure to use and I'm looking forward to seeing much wider adoption in the near future.
Activity
corydeppen commentedon Nov 22, 2024
I believe this issue has been resolved after the
Html,Head, andBodycomponents were removed. I created a new example based on the original reproduction, updated the dependencies and Start-related files, and moved theColorSchemeScriptinto theheadand I no longer see the hydration error. The Mantine script only appears in theheadnow as expected.Thanks for all your hard work on Router and Start! It's a pleasure to use and I'm looking forward to seeing much wider adoption in the near future.