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 stale pathname after await and eager spread identity check
- __root.tsx: Reintroduce pathnameRef to read the latest pathname after
the async bootstrapFromSnapshotRef.current() call. The closure-captured
pathname becomes stale across the await boundary, causing unwanted
redirects if the user navigates during bootstrap.
- terminalStateStore.ts: In clearTerminalState, defer the spread of
terminalEventEntriesByKey until after confirming entries actually need
removal. The eager spread created a new reference unconditionally,
making the === identity check always false and the no-op early return
unreachable.
0 commit comments