0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

fix(route-modules): keep HMR updates and Windows lookups for mounted modules

- start-plugin-core: the client route tree plugin sent a full reload on
  every route tree change, so adding or removing a route option such as
  `loader` or `beforeLoad` discarded client state instead of hot updating.
  Reload only when the routes the client keeps change: the application's
  pruned tree, the provider tree mapping or a provider's client tree.
- router-generator: key mounted module route files with forward slashes
  like the package's own route files. The router plugin looks them up by
  normalized module id, so on Windows module routes missed HMR and code
  splitting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Manuel Schiller 2026-11-02 01:24:49 +01:00
commit aaa64fc21d
3 changed files with 31 additions and 81 deletions