dillon1000/react

Commit

Defer useDeferredValue updates in Gestures (#35511)

If an initial value is specified, then it's always used regardless as
part of the gesture render.

If a gesture render causes an update, then previously that was not
treated as deferred and could therefore be blocking the render. However,
a gesture is supposed to flush synchronously ideally. Therefore we
should consider these as urgent.

The effect is that useDeferredValue renders the previous state.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-reconciler/src/ReactFiberLane.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…