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

feat(theme-provider): Suppress hydration warning and add String.raw #40

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

TheAifam5
Copy link
Contributor

This commit suppresses the hydration warning in the browser by adding suppressHydrationWarning to the script tag. This is necessary to prevent the browser from throwing a warning about extra attributes from the server, specifically nonce.

Additionally, String.raw has been added for the manually injected script content. This is used to get the raw string form of template strings, which is useful when you want to avoid processing of escape sequences.

This commit suppresses the hydration warning in the browser by adding `suppressHydrationWarning` to the script tag. This is necessary to prevent the browser from throwing a warning about extra attributes from the server, specifically `nonce`.

Additionally, `String.raw` has been added for the manually injected script content. This is used to get the raw string form of template strings, which is useful when you want to avoid processing of escape sequences.
@abereghici abereghici merged commit dda4e9a into abereghici:main Jul 11, 2024
2 checks passed
@abereghici
Copy link
Owner

Thank you @TheAifam5 !

Copy link

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants