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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(clerk-react): Add frontendAPI on window as a fallback #492

Merged
merged 1 commit into from
Nov 2, 2022

Commits on Nov 2, 2022

  1. fix(clerk-react): Add frontendAPI on window as a fallback

    Store frontendAPI value on window as a fallback. This value can be used as a fallback during ClerkJS hot loading in case ClerkJS fails to find the "data-clerk-frontend-api" attribute on its script tag.
    
    This can happen when the DOM is altered completely during client rehydration.
    For example, in Remix with React 18 the document changes completely via `hydrateRoot(document)`.
    
    For more information refer to:
    
    - remix-run/remix#2947
    - facebook/react#24430
    SokratisVidros committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    047d4a4 View commit details
    Browse the repository at this point in the history