dillon1000/react
Commit
Browse files [Fiber][DevTools] Add scheduleRetry to DevTools Hook (#34635)
When forcing suspense/error we're doing that by scheduling a sync update on the fiber. Resuspending a Suspense boundary can only happen sync update so that makes sense. Erroring also forces a sync commit. This means that no View Transitions fire. However, unsuspending (and dismissing an error dialog) can be async so the reveal should be able to be async. This adds another hook for scheduling using the Retry lane. That way when you play through a reveal sequence of Suspense boundaries (like playing through the timeline), it'll run the animations that would've ran during a loading sequence.
Changed paths5 files
First-parent comparisonpackages/react-debug-tools/src/__tests__/ReactDevToolsHooksIntegration-test.js ModifiedM packages/react-devtools-shared/src/__tests__/store-test.js ModifiedM packages/react-devtools-shared/src/backend/fiber/renderer.js ModifiedM packages/react-devtools-shared/src/backend/types.js ModifiedM packages/react-reconciler/src/ReactFiberReconciler.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…