-
Notifications
You must be signed in to change notification settings - Fork 47.9k
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
Warn when doing createRoot twice on the same node (another approach) #17329
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b84f028:
|
Details of bundled changes.Comparing: be3bfa6...b84f028 react-dom
Size changes (experimental) |
Huh. The failure is funny. I forgot about the case of two renderers. |
Details of bundled changes.Comparing: be3bfa6...b84f028 react-dom
ReactDOM: size: 0.0%, gzip: 🔺+0.1% Size changes (stable) |
Re: async, I could follow this pattern: react/packages/react-dom/src/client/ReactDOM.js Lines 542 to 549 in be3bfa6
|
Alternative to #17328. Uses an existing flag. First commit is a refactoring, second adds a new warning.