0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
router/packages/react-router
Sheraff 27e3a9142e
fix(router-core, react-router): React route HMR takes the new component after the refresh pass (design 6 step 1)
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 2026-11-11 12:00:59 +01:00
..
skills docs(skills): reference cross-package skills by intent ID (#8670) 2026-10-17 11:10:53 +02:00
src fix(router-core, react-router): React route HMR takes the new component after the refresh pass (design 6 step 1) 2026-11-11 12:00:59 +01:00
tests test(react-router): drop the unused click helper of the route HMR tests 2026-10-30 00:59:39 +01:00
CHANGELOG.md ci: Version Packages (#8745) 2026-10-22 22:05:39 +02:00
eslint.config.ts feat: add @tanstack/intent AI agent skills for Router and Start (#6866) 2026-03-16 16:54:37 -06:00
package.json Merge origin/main into t3/yuku-compiler-rewrite 2026-10-25 22:56:24 +01:00
README.md docs: use the dynamic README header endpoint (#7940) 2026-08-03 21:03:29 +02:00
tsconfig.build.json chore: upgrade tooling to typescript 6 (#7024) 2026-03-23 22:59:52 +01:00
tsconfig.json chore: upgrade tooling to typescript 6 (#7024) 2026-03-23 22:59:52 +01:00
tsconfig.legacy.json ci: Add local TS version tests (#1910) 2024-07-07 14:23:40 +10:00
vite.config.ts perf(router): move the dev-only route HMR runtime to a /hmr subpath 2026-10-25 14:32:06 +01:00

TanStack React Router

TanStack React Router

🤖 Type-safe router w/ built-in caching & URL state management for React!

#TanStack semantic-release Join the discussion on Github Best of JS

Enjoy this library? Try the entire TanStack! React Query, React Table, React Charts, React Virtual

Visit tanstack.com/router for docs, guides, API and more!