mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
Applications that mount route modules create their router with `createRouteModuleRouter`, a named export of React, Solid and Vue Router with the options and return type of `createRouter`. It is the one place that installs the route-module behavior of the core and of the framework links, before the router is created. - The core keeps that behavior in one never-assigned `routeModules` binding, which bundlers fold away in applications without route modules. - Module code (`mountRouteModule`, generated scopes, module roots and scoped binders) no longer installs anything, so no install side effect hides behind `/* @__PURE__ */` calls. - Nothing reads the behavior at import: the template root of a module installed several times takes its `<pkg>:` id itself. - In development, `createRouter` throws when its route tree contains a mounted module or when it receives options from generated module APIs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
History
|
|
|---|---|---|
| .. | ||
| react | ||
| solid | ||
| vue | ||
| AGENTS.md | ||