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 react 18 in legacy mode: _reactRootContainer might still be defined #89

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

Conversation

jpnelson
Copy link

@jpnelson jpnelson commented Sep 1, 2023

If you're running React 18, but using the legacy API's still, _reactRootContainer is undefined, but it doesn't have the _internalRoot property on it. This should fix that – in React 18 legacy, we want to follow the React 18 path for finding the react instance, ideally.

You can see the problem here: https://codepen.io/cyberdash/pen/oNJLaeo?editors=1111

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

Successfully merging this pull request may close these issues.

1 participant