0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
router/packages/react-router/tests
Christopher Horobin 167ac74445
feat: trailingSlashes option on the type level (#1509)
* feat: infer trailing slash option from router to use at the type level

- always will always add trailing slashes to the leaves of `to` prop
- never will always remove trailing slashes from the leaves of `to` prop
- preserve will allow both paths with or without slashes

* fix: allow branches but not when there is an index route
History 2024-04-25 20:05:34 +02:00
..
createRoute.test.ts feat: New code-splitting patterns + deprecations 2024-01-24 13:01:48 -07:00
fileRoute.test-d.tsx tests: add fileRoute and route type tests (#1428) 2024-04-07 11:15:53 +02:00
fileRoute.test.ts tests: fix type tests for Link, make sure type tests fail in ci and add type tests for union to and difference in params (#1418) 2024-04-04 18:42:13 +02:00
index.test.tsx fix: always use React transitions around navigations, experimental view transitions API 2024-04-18 16:33:04 -06:00
link.test-d.tsx feat: trailingSlashes option on the type level (#1509) 2024-04-25 20:05:34 +02:00
Matches.test-d.tsx feat: trailingSlashes option on the type level (#1509) 2024-04-25 20:05:34 +02:00
qss.test.ts fix(react-router): incorrectly splitting the key-values pairs from the querystring (#1405) 2024-04-03 12:09:14 +13:00
redirects.test.-d.tsx feat: trailingSlashes option on the type level (#1509) 2024-04-25 20:05:34 +02:00
route.test-d.tsx feat: strong typing for onEnter, onStay and onLeave (#1479) 2024-04-19 22:28:28 +02:00
route.test.ts tests: fix type tests for Link, make sure type tests fail in ci and add type tests for union to and difference in params (#1418) 2024-04-04 18:42:13 +02:00
router.test.ts fix(react-router): encoding of / in path parameters (#1520) 2024-04-25 22:04:47 +12:00
RouterProvider.test-d.tsx feat: trailingSlashes option on the type level (#1509) 2024-04-25 20:05:34 +02:00
useNavigate.test-d.tsx feat: trailingSlashes option on the type level (#1509) 2024-04-25 20:05:34 +02:00
useRouterState.test-d.tsx feat: trailingSlashes option on the type level (#1509) 2024-04-25 20:05:34 +02:00
utils.test.ts fix(react-router): trailing slash shouldn't fail the path matching (#1372) 2024-03-27 14:13:09 +13:00
utils.ts fix: tests 2023-11-05 01:56:35 -06:00