dillon1000/react
Commit
Browse files Skip hydration errors when a view transition has been applied (#35380)
When the Fizz runtime runs a view-transition we apply `view-transition-name` and `view-transition-class` to the `style`. These can be observed by Fiber when hydrating which incorrectly leads to hydration errors. More over, even after we remove them, the `style` attribute has now been normalized which we are unable to diff because we diff against the SSR generated `style` attribute string and not the normalized form. So if there are other inline styles defined, we have to skip diffing them in this scenario.
Changed paths1 file
First-parent comparisonpackages/react-dom-bindings/src/client/ReactDOMComponent.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…