mirror of
https://github.com/TanStack/router.git
synced 2026-11-18 19:34:24 +00:00
The React adapter's whenRefreshed runs a route update once React Refresh processed the evaluated modules (Vite: a task after the __registerBeforePerformReactRefresh hooks; webpack/Rspack: the enqueueUpdate callback), or after a 200 ms bound of its own per update, at once without a refresh runtime. Core runs through the adapter's settled: the unsplit route refresh, a lazy wrapper's settle of a re-imported chunk (the newest-import rule checked again after the wait), and a lazy route file's in-place update. The live wrappers re-import when the route module evaluates (once per wrapper pair), so the chunk's settle waits for the same pass. React's keep, keepUnsplit and kept() are gone: React Refresh decides whether the mounted component keeps its state. keep/keepUnsplit are optional (Solid, Vue unchanged). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
History
|
|
|---|---|---|
| .. | ||
| skills | ||
| src | ||
| tests | ||
| CHANGELOG.md | ||
| eslint.config.ts | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsconfig.legacy.json | ||
| vite.config.ts | ||
TanStack React Router
🤖 Type-safe router w/ built-in caching & URL state management for React!
Enjoy this library? Try the entire TanStack! React Query, React Table, React Charts, React Virtual