-
Notifications
You must be signed in to change notification settings - Fork 47.7k
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
[Fiber] Disable comments as containers in OSS #32250
Conversation
Comparing: 8bda715...ba621ee Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show |
c40b0ae
to
6c7a725
Compare
8bd6f8e
to
3caa786
Compare
3caa786
to
68cea76
Compare
68cea76
to
ce7e77c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test would be nice
3 years ago we partially disabled comment nodes as valid containers. Some unflagged support was left in due to legacy APIs like `unmountComponentAtNode` and `unstable_renderSubtreeIntoContainer` but these were since removed in React 19. This update flags the remaining uses of comments as containers.
ce7e77c
to
cfaecb1
Compare
we actually already do have them: react/packages/react-dom/src/__tests__/ReactDOMRoot-test.js Lines 401 to 414 in 8bda715
The only places the previously supported Comment container support would have been observable were in APIs we removed in React 19 so there really isn't anything new to test |
3 years ago we partially disabled comment nodes as valid containers. Some unflagged support was left in due to legacy APIs like `unmountComponentAtNode` and `unstable_renderSubtreeIntoContainer` but these were since removed in React 19. This update flags the remaining uses of comments as containers. DiffTrain build for [0605cd9](0605cd9)
3 years ago we partially disabled comment nodes as valid containers. Some unflagged support was left in due to legacy APIs like `unmountComponentAtNode` and `unstable_renderSubtreeIntoContainer` but these were since removed in React 19. This update flags the remaining uses of comments as containers. DiffTrain build for [0605cd9](0605cd9)
3 years ago we partially disabled comment nodes as valid containers. Some unflagged support was left in due to legacy APIs like
unmountComponentAtNode
andunstable_renderSubtreeIntoContainer
but these were since removed in React 19. This update flags the remaining uses of comments as containers.