0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/packages/react-router/tests
Flo 9c1871ccc8
fix: harden URL handling across Router and Start (#8308)
* fix: harden URL handling across Router and Start

* fix: preserve unload blockers after document navigation

* perf: reduce document navigation guard size
History 2026-09-09 23:03:49 +02:00
..
lazy fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
ancestor-loader-child-pending-min.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
Asset.test.tsx fix(react-router): avoid rewriting unchanged head assets (#8257) 2026-09-06 00:21:02 +02:00
blocker.test.tsx feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
ClientOnly.test.tsx feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
component-preload-retry-pending-min.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
component-preload-retry.test.tsx fix(router): reuse resolved lazy route components (#8054) 2026-08-14 13:30:20 +02:00
createLazyRoute.test.tsx fix: ensure lazy error component is preloaded (#6875) 2026-03-09 23:04:09 +01:00
disableGlobalCatchBoundary.test.tsx feat(react-router): add disableGlobalCatchBoundary option (#4765) 2025-07-26 22:45:20 +02:00
errorBoundary.test-d.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
errorComponent.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
fileRoute.test-d.tsx fix: parse params union inference (#7306) 2026-05-01 02:04:12 +02:00
fileRoute.test.ts Create file routes directly (#7970) 2026-08-06 13:38:43 +02:00
hydration-capped-boundary-pending.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
hydration-terminal-lane.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
issue-2182-root-pending.test.tsx test: add regression coverage for existing router behavior (#7812) 2026-07-14 01:44:02 +02:00
issue-2905-root-beforeload-pending.test.tsx test: add more regression coverage for existing router behavior (#7822) 2026-07-15 09:48:19 +02:00
issue-4467-lazy-route-pending.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
issue-4476-react-query-cancellation.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
issue-5778-router-provider-context-preload.test.tsx test: add more regression coverage for existing router behavior (#7822) 2026-07-15 09:48:19 +02:00
issue-6107-lazy-chunk-error-component.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
issue-6371-search-default-normalization-abort.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
issue-7051-force-pending-suspense.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
issue-7367-pending-min-redirect.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
issue-7635-error-head-after-navigation.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
issue-7638-invalidate-transition-error.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
issue-7964-param-parsing-loader.test.tsx fix(router): preserve raw params for match identity (#7966) 2026-08-05 21:41:42 +02:00
issue-7986-retained-pending.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
issue-8115-context.test.tsx fix(router-core): preserve context during reloads (#8130) 2026-08-20 23:34:06 +02:00
issue-8128-context.test.tsx fix(router-core): fix dangling references in published declarations (#8207) 2026-09-06 11:00:24 +02:00
issue-8128-source-notfound-retention-boundary.test.tsx fix(router-core): retain not-found boundary during navigation (#8161) 2026-09-05 09:51:56 +02:00
link-events.test.tsx fix: harden URL handling across Router and Start (#8308) 2026-09-09 23:03:49 +02:00
link-href-safety.test.tsx fix: harden URL handling across Router and Start (#8308) 2026-09-09 23:03:49 +02:00
link-path-matching.test.tsx test: cover existing navigation and redirect behavior (#8286) 2026-09-07 21:35:15 +02:00
link-state-props.test.tsx fix: harden URL handling across Router and Start (#8308) 2026-09-09 23:03:49 +02:00
link.bench.tsx feat(react-router): add remountDeps (#3269) 2025-01-29 01:03:33 +01:00
link.test-d.tsx chore: bump deps (#6408) 2026-01-18 02:14:48 +01:00
link.test.tsx fix: harden URL handling across Router and Start (#8308) 2026-09-09 23:03:49 +02:00
loaders.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
Matches.test-d.tsx fix: MatchRoute types (#7139) 2026-04-10 21:35:42 +02:00
Matches.test.tsx fix(react-router): useMatchRoute w/ React Compiler (#8015) 2026-08-12 10:35:50 +02:00
navigate.test.tsx fix(router-core): null prototype input/output objects (#6882) 2026-03-10 20:22:35 +01:00
not-found-pending-context.test.tsx test(react-router): cover pending and not-found context (#8243) 2026-09-06 00:00:46 +02:00
not-found-route-context.test.tsx test(react-router): cover pending and not-found context (#8243) 2026-09-06 00:00:46 +02:00
not-found-route-lifecycle.test.tsx fix(router-core): skip lifecycle callbacks below fallback boundaries (#8165) 2026-09-06 00:00:46 +02:00
not-found.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
on-rendered-same-href-state.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
optional-path-params.test-d.tsx feat: optional path params (#4597) 2025-07-16 13:41:58 -06:00
optional-path-params.test.tsx refactor(router-core): interpolatePath skips optional segments w/ nullish param value (#5934) 2025-11-21 23:55:16 +01:00
Outlet.test.tsx fix(router): warn when Outlet is rendered in fallback components (#8045) 2026-08-12 09:53:15 +02:00
pending-fallback-promise-replacement.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
pending-route-context.test.tsx test(react-router): cover pending and not-found context (#8243) 2026-09-06 00:00:46 +02:00
preloaded-mount-resolution.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
public-presentation-lane-contract.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
react-render-owner-contract.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
redirect-chain-first-load.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
redirect.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
redirects.test-d.tsx fix: make to required if from is not set (#3099) 2025-01-04 18:48:57 +01:00
renderRouterToStream.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
root-pending-min.test.tsx fix(react-router): avoid Suspense above root documents (#8055) 2026-08-14 13:34:08 +02:00
route.test-d.tsx feat: pass routeId into context/beforeLoad (#6579) 2026-02-03 00:59:12 +01:00
route.test.tsx feat: Add style to HeadContent (#4559) 2025-07-02 00:28:12 +02:00
routeApi.test-d.tsx fix: preserve shouldThrow in route-scoped hooks (#8169) 2026-08-27 23:54:34 +02:00
routeContext.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
router-client-stream-cleanup.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
router.test-d.tsx refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
router.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
RouterProvider.test-d.tsx feat: trailingSlashes option on the type level (#1509) 2024-04-25 20:05:34 +02:00
routeScopedShouldThrow.test.tsx fix: preserve shouldThrow in route-scoped hooks (#8169) 2026-08-27 23:54:34 +02:00
Scripts.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
searchMiddleware.test.tsx feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
setupTests.tsx chore: silence error in test (#4794) 2025-07-26 23:05:17 +02:00
store-updates-during-navigation.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
transactional-loading.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
transitioner-listener-errors.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
transitioner-remount.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
transitioner-render-ack.test.tsx fix(router-core): remove navigation rollback (#8092) 2026-08-18 14:09:37 +02:00
useBlocker.test-d.tsx feat(react-router): add useCanGoBack (#3017) 2025-01-03 21:09:58 +01:00
useBlocker.test.tsx fix(router-core): useBlocker navigation issues for 404 pages and external URLs (#4917) 2025-11-23 01:29:13 +01:00
useCanGoBack.test.tsx feat(react-router): add useCanGoBack (#3017) 2025-01-03 21:09:58 +01:00
useLoaderData.test-d.tsx fix: only call head() when loaderData is available (#3410) 2025-02-13 13:06:13 -07:00
useLocation.test-d.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
useLocation.test.tsx test: add useLocation structural sharing regression coverage (#6853) 2026-03-08 10:09:43 +01:00
useMatch.test-d.tsx refactor(router-core): migrate matches and route options to core (#3552) 2025-02-24 23:17:58 +01:00
useMatch.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
useNavigate.test-d.tsx fix: make to required if from is not set (#3099) 2025-01-04 18:48:57 +01:00
useNavigate.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
useParams.test-d.tsx feat(react-router): add shouldThrow option to useParams and useSearch (#3368) 2025-02-08 22:36:40 +01:00
useParams.test.tsx feat: match params (#7263) 2026-04-30 19:47:07 +02:00
useRouteContext.test-d.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
useRouterState.test-d.tsx feat(react-router): add support for structural sharing for finegrained selectors (#2647) 2024-11-09 22:41:12 +01:00
useSearch.test-d.tsx fix: only call head() when loaderData is available (#3410) 2025-02-13 13:06:13 -07:00
utils.ts fix(router): apply preload delay to viewport links (#8044) 2026-08-12 09:52:36 +02:00