router
router copied to clipboard
🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering.
resolves #3482 WIP needs runtime tests
Closes #3157 This PR allows literal values to be passed without transformation in types. As a side effect it allows to pass branded types. See example: ```tsx import { createFileRoute...
`@tanstack/react-router` remains a dev dependency because it's still used in tests
### Which project does this relate to? Router ### Describe the bug ## Problem When throwing a `notFound()` error with a custom routeId option from a route's `onError` callback, the...
### Which project does this relate to? Router ### Describe the bug When trying to use the type `ValidateLinkOptions` or similar (like `LinkProps`) inside the loader of `createFileRoute`, I get...
fix #5466 > https://github.com/TanStack/router/blob/4693e0e3d4340238a79f26a2a9b102b4e670ea2a/packages/router-core/src/link.ts#L222-L229 When `TResolvedPath` is a union such as "/invoices" | "/wrong". In this case, checking it directly with `(TResolvedPath & RouteToPath extends never `does not filter out...