mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Prevent errors from comment node roots with enableViewTransition (#33205)
We have many cases internally where the `containerInstance` resolves to a comment node. `restoreRootViewTransitionName` is called when `enableViewTransition` is on, even without introducing a `<ViewTransition />`. So that means it can crash pages because `containerInstance.style` is `undefined` just by turning on the flag. This skips cancel/restore of root view transition name if a comment node is the root.
This commit is contained in:
@@ -544,5 +544,6 @@
|
||||
"556": "Expected prepareToHydrateHostActivityInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.",
|
||||
"557": "Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.",
|
||||
"558": "Client rendering an Activity suspended it again. This is a bug in React.",
|
||||
"559": "Expected to find a host node. This is a bug in React."
|
||||
"559": "Expected to find a host node. This is a bug in React.",
|
||||
"560": "Cannot use a startGestureTransition() with a comment node root."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user