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(gatsby-plugin-styletron): do not overwrite styletron instances #38924

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonsadka
Copy link

@jonsadka jonsadka commented Apr 7, 2024

We cannot guarantee that onRenderBody gets called after wrapRootElement in series. Because of this, we need to namespace the styletron instance so it does not get blow away if wrapRootElement for the next page is called before onRenderBody has been called.

We cannot guarantee that `onRenderBody` gets called after `wrapRootElement` in series. Because of this, we need to namespace the styletron instance so it does not get blow away if `wrapRootElement` for the next page is called before `onRenderBody` has been called.
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 7, 2024
@jonsadka jonsadka changed the title bugfix: do not overwrite styletron instances fix(gatsby-plugin-styletron): do not overwrite styletron instances Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant