Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hydration issue): Only look at IncrementalSource.Mutation types f…
…or 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; }; ```
- Loading branch information