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: retry on Suspense render and preserve hook state
- If a parent rerenders while a child suspends, retry rerendering
suspended children. This supports patterns like react-freeze where
a never-resolving thenable freezes a subtree and a parent re-render
clears it.
- Preserve hook state (useState, etc.) across suspend/unsuspend for
already-mounted components. Discard hook state for components that
suspend during initial mount (matching React's WIP fiber discard).
- Run effect cleanups (both useEffect and useLayoutEffect) uniformly
during suspension. Effects rerun when unsuspended.
0 commit comments