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

Commits on Jul 10, 2024

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

    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.
    TheAifam5 committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    0f1a25e View commit details
    Browse the repository at this point in the history