dillon1000/react
Commit
Browse files 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.
Changed paths1 file
First-parent comparisonpackages/react-reconciler/src/ReactFiberLane.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…