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:
parent
d4ff4c76ae
commit
aaa64fc21d
3 changed files with 31 additions and 81 deletions
Loading…
Add table
Add a link
Reference in a new issue