0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/packages/vue-router
github-actions[bot] 4ff63eb8a4
ci: Version Packages (#8700)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
History 2026-10-13 01:43:37 +02:00
..
skills Improve Router and Start agent skills (#7867) 2026-07-26 10:53:49 -06:00
src revert: keep server-rendered pending UI of no-SSR routes through hydration (#8643) (#8646) 2026-10-09 21:41:47 +02:00
tests revert: keep server-rendered pending UI of no-SSR routes through hydration (#8643) (#8646) 2026-10-09 21:41:47 +02:00
CHANGELOG.md ci: Version Packages (#8700) 2026-10-13 01:43:37 +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 ci: Version Packages (#8700) 2026-10-13 01:43:37 +02:00
README.md docs: use the dynamic README header endpoint (#7940) 2026-08-03 21:03:29 +02:00
tsconfig.build.json Vue router (#5997) 2025-12-06 19:41:15 +01:00
tsconfig.json chore: upgrade tooling to typescript 6 (#7024) 2026-03-23 22:59:52 +01:00
tsconfig.legacy.json Vue router (#5997) 2025-12-06 19:41:15 +01:00
vite.config.ts chore: upgrade tooling to typescript 6 (#7024) 2026-03-23 22:59:52 +01:00

TanStack Vue Router

TanStack Vue Router

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

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

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

File-Based Routing Conventions

Suffix/Pattern Purpose
.route.ts Route configuration (loader, validateSearch, head, etc.)
.component.vue The component rendered for the route
.errorComponent.vue Error boundary component for the route
.notFoundComponent.vue Not found component for the route
.lazy.ts Lazy-loaded route configuration
_layout prefix Layout routes that wrap child routes
_ suffix (e.g., posts_.$postId) Unnested routes (break out of parent layout)
(groupName) directory Route groups (organizational, don't affect URL)
$param Dynamic route parameters

Examples from e2e/basic-file-routes/ project

src/routes/
├── __root.ts                   # Root route config
├── __root.component.vue        # Root layout component
├── __root.notFoundComponent.vue # Global not found component
├── index.route.ts              # "/" route config
├── index.component.vue         # "/" component
├── posts.route.ts              # "/posts" route config
├── posts.component.vue         # "/posts" layout component
├── posts.index.component.vue   # "/posts" index component
├── posts.$postId.route.ts      # "/posts/:postId" route config
├── posts.$postId.component.vue # "/posts/:postId" component
├── posts.$postId.errorComponent.vue  # Error boundary for post
├── posts_.$postId.edit.route.ts      # "/posts/:postId/edit" (unnested)
├── (group)/                    # Route group (no URL impact)
│   ├── _layout.route.ts        # Layout for group
│   ├── _layout.component.vue
│   └── inside.component.vue    # "/inside"
└── 대한민국.component.vue        # Unicode routes supported