0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/packages/react-router
stevenlyd ac61e8ee38
test: Add test cases for route id consistency (#2401)
* tweaked the fallback order

* added getLastPathSegment util function

* removed unused import

* added test case for getLastPathSegment()

* trim parent id prefix when creating lazy routes

* added test cases

* removed unused import

* made test case more strict

* use it.each

* Added test for route id uniqueness

* added test cases to check if the option.id for lazyRoute is trimmed

* revert changes, keep only the tests

* removed unused import

---------

Co-authored-by: Yidong Liu <yliu@plexxis.com>
History 2024-10-15 21:35:04 +02:00
..
src fix: correctly handle route groups (#2550) 2024-10-15 21:31:38 +02:00
tests test: Add test cases for route id consistency (#2401) 2024-10-15 21:35:04 +02:00
eslint.config.ts chore: lint (#2369) 2024-09-19 00:28:18 +02:00
package.json release: v1.69.1 2024-10-15 19:32:55 +00:00
README.md docs: add README files for the user-facing packages (#1617) 2024-05-18 13:45:46 +12:00
tsconfig.json chore: lint (#2369) 2024-09-19 00:28:18 +02:00
tsconfig.legacy.json ci: Add local TS version tests (#1910) 2024-07-07 14:23:40 +10:00
vite.config.ts feat(create-router): added project generator to scaffold router projects (#2300) 2024-09-10 00:41:44 +02:00

TanStack React Router

TanStack Router Header

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

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

Enjoy this library? Try the entire TanStack! React Query, React Table, React Charts, React Virtual

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