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
|
|
|---|---|---|
| .. | ||
| authenticated-routes | ||
| authenticated-routes-firebase | ||
| basic | ||
| basic-default-search-params | ||
| basic-devtools-panel | ||
| basic-file-based | ||
| basic-non-nested-devtools | ||
| basic-react-query | ||
| basic-react-query-file-based | ||
| basic-ssr-file-based | ||
| basic-ssr-streaming-file-based | ||
| basic-virtual-file-based | ||
| basic-virtual-inside-file-based | ||
| deferred-data | ||
| i18n-paraglide | ||
| kitchen-sink | ||
| kitchen-sink-file-based | ||
| kitchen-sink-react-query | ||
| kitchen-sink-react-query-file-based | ||
| large-file-based | ||
| location-masking | ||
| navigation-blocking | ||
| quickstart | ||
| quickstart-esbuild-file-based | ||
| quickstart-file-based | ||
| quickstart-rspack-file-based | ||
| quickstart-webpack-file-based | ||
| router-monorepo-react-query | ||
| router-monorepo-simple | ||
| router-monorepo-simple-lazy | ||
| scroll-restoration | ||
| search-validator-adapters | ||
| start-bare | ||
| start-basic | ||
| start-basic-auth | ||
| start-basic-authjs | ||
| start-basic-cloudflare | ||
| start-basic-react-query | ||
| start-basic-rsbuild | ||
| start-basic-rsc/.devcontainer | ||
| start-basic-static | ||
| start-bun | ||
| start-clerk-basic | ||
| start-convex-trellaux | ||
| start-counter | ||
| start-i18n-paraglide | ||
| start-large | ||
| start-large-route-modules | ||
| start-material-ui | ||
| start-next-migration | ||
| start-rscs | ||
| start-streaming-data-from-server-functions | ||
| start-supabase-basic | ||
| start-tailwind-v4 | ||
| start-trellaux | ||
| start-workos | ||
| view-transitions | ||
| with-framer-motion | ||
| with-trpc | ||
| with-trpc-react-query | ||