You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(hydration issue): Only look at IncrementalSource.Mutation types for hydration before/after (#82908)
There are many IncrementalSource possibilities (definition copied
below), but we really only want to look at mutations. Mouse moves,
input, and possibly even StyleSheetRule shouldn't affect hydrating the
DOM that react cares about.
The full list of this enum is:
```
export declare enum IncrementalSource {
Mutation = 0,
MouseMove = 1,
MouseInteraction = 2,
Scroll = 3,
ViewportResize = 4,
Input = 5,
TouchMove = 6,
MediaInteraction = 7,
StyleSheetRule = 8,
CanvasMutation = 9,
Font = 10,
Log = 11,
Drag = 12,
StyleDeclaration = 13,
Selection = 14,
AdoptedStyleSheet = 15,
CustomElement = 16
}
```
The parent type that we are refining down from is:
```
export type incrementalSnapshotEvent = {
type: EventType.IncrementalSnapshot;
data: incrementalData;
};
```
0 commit comments