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
Max Katz 18154b1c45
perf: lower manifest script preload priority (#8212)
* perf: lower manifest script preload priority

* fix(start-server-core): forward fetchPriority into static Early Hints

Static script hints were built from getScriptPreloadAttrs but copied only
href, rel, as and crossOrigin, so Chromium started hinted preloads at
MEDIUM before the HTML's fetchPriority="low" arrived. Build them with the
shared addEarlyHintFetchAttrs helper, which the dynamic hint path already
uses, so fetchPriority (and crossOrigin) are carried into 103 hints and the
response Link header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: cover low-priority manifest preloads in Solid and Vue

Add a Solid server-suite SSR test for module and IIFE preloads and assert
fetchpriority="low" on rendered preloads in the Solid and Vue HeadContent
tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: note low-priority JavaScript Early Hints

Mention that JavaScript Early Hints carry fetchpriority=low and extend the
changeset to start-server-core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-10-16 15:35:33 +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 chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41: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 optimize streaming (#8204) 2026-09-16 22:38:25 +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-2072-context-invalidate.test.tsx test(react-router): regression for #2072 router context invalidation (#8499) 2026-09-26 13:45:54 +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
jest-dom.setup.ts chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
link-departing-scope.test.tsx perf(router): skip Link work for routes a navigation leaves (#8602) 2026-10-05 21:27:33 +02:00
link-destination.test.tsx perf(router): skip Link work for routes a navigation leaves (#8602) 2026-10-05 21:27:33 +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-hydration.test.tsx perf(react-router): avoid redundant link hydration updates (#8435) 2026-09-23 14:00:26 +02:00
link-memo.test.tsx perf(react-router): memoize Link and forward refs without an effect (#8405) 2026-09-13 13:55:07 +02:00
link-path-matching.test.tsx test: cover existing navigation and redirect behavior (#8286) 2026-09-07 21:35:15 +02:00
link-selector.test.tsx perf(react-router): reuse link selector results (#8522) 2026-09-27 22:01:33 +02:00
link-state-props.test.tsx perf(router): keep the location cache client-only and slim Link SSR (#8390) 2026-09-13 13:55:06 +02:00
link.bench.tsx chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
link.test-d.tsx chore: bump deps (#6408) 2026-01-18 02:14:48 +01:00
link.test.tsx test(router): Link tests that hold on main, ahead of the departing-Link work (#8611) 2026-10-04 22:46:37 +02:00
loaders.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
match-provider.test.tsx perf(react-router): consolidate root match provider (CodSpeed experiment) (#8530) 2026-09-27 21:31:39 +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 optimize streaming (#8204) 2026-09-16 22:38:25 +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.react19.test.tsx optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
renderRouterToStream.test.tsx optimize streaming (#8204) 2026-09-16 22:38:25 +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 perf: lower manifest script preload priority (#8212) 2026-10-16 15:35:33 +02:00
searchMiddleware.test.tsx feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
setupTests.tsx chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +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 chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
useCanGoBack.test.tsx feat(react-router): add useCanGoBack (#3017) 2025-01-03 21:09:58 +01:00
useHydrated.test.tsx perf(react-router): reduce Link runtime allocations (#8324) 2026-09-13 13:55:03 +02: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 fix: upgrade TanStack Store to latest (#7824) 2026-09-10 19:41:24 +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 chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +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