Skip to content
Source
Sign inSign up
TanStack/router

perf(router): skip Link work for routes a navigation leaves #8602

MergedSheraff(GitHub profile, opens in a new tab)merged 26 commits intomain fromrefs/pull/8602/headmerged by Sheraff(GitHub profile, opens in a new tab)

🎯 Changes

Every mounted React Link subscribes to the router's location store and recomputes its href and active state synchronously when a navigation starts. On pages with many Links this dominates click processing time (INP), and Links in a route that is about to unmount do that work, and may even re-render, right before they are removed.

Links now subscribe to a small per-route scope instead of the store:

  • Links read the existing matchContext route id and take their scope from a per-router pool keyed by route id (router.stores._linkScopes), created lazily by the first Link of a route. A scope with no Links holds no location and no subscription, so the pool retains only an empty shell (about 0.5 KB of heap) per route id that rendered Links. Links outside every match share one scope that never departs.
  • The scope holds the only location subscription for its Links and notifies them through plain callbacks. It unsubscribes and clears its source when its last Link leaves.
  • On a publication, router-core's _isRouteDeparting tells the scope whether the publishing transaction leaves its route. If so the scope skips: its Links keep the location their route still presents. Staying routes, the root, and Links outside every match update urgently as before.
  • No catch-up is needed: a published navigation either unmounts the departing route or is followed by another publication (redirect, supersession, history traversal, invalidation), which re-evaluates the scope.
  • Clicks and preloads resolve from the location a Link displays. buildLocation builds mask and routeMasks locations from the same _fromLocation as their destination, which also applies to redirects and route navigate helpers that pass one.

Solid and Vue are included (see below) without the React scope pool: Solid gates inside each Link's own location memo, and Vue uses a per-match ref.

Solid

  • Each Link's existing location memo returns its previous location when _isRouteDeparting is truthy for the nearest match's route id (read once, untracked, at setup), so a departing route's Links do no further work.
  • Match.tsx and matchContext.tsx are unchanged from main, and an app without Links runs none of the new code.
  • A Link that mounts in a route that is already departing reads the pending location.
  • Clicks and preloads pass the memo's location as _fromLocation.
  • The Link's location memo compares by identity, so state-only navigations (same href) reach clicks, preloads and state-dependent destinations.

Vue

  • Each Match (and RouterContextProvider, for Links outside every match) provides a shallowRef link location, written by a synchronous subscription to the location store. The write is skipped when _isRouteDeparting is truthy for the publishing navigation, so the ref keeps the location its route still presents.
  • Links inject that ref instead of selecting the location store, so Links in a departing match do no work. Clicks and preloads resolve from the same source.
  • No ref or subscription is created on the server.

Behavior notes

  • Three tests in link.test.tsx asserted on detached anchors of departing Links, which only became active on main because they updated just before unmounting. They now query mounted Links. The same three tests were adjusted the same way in React, Solid and Vue.
  • A reloadDocument redirect, or a view transition callback that throws, leaves the router pending forever on main. In that state held Links keep the source of the page still displayed. No handling is added for it.
  • Nested routers (one router's Link inside another router's match) are not handled.
  • A listener that publishes a new location synchronously while a route's Links are being notified (for example a search updater with a navigation side effect) is not supported: those Links stay on the first location until the next publication.

Measurements

The numbers below are kept as a record. They came from ad-hoc harnesses that are not included in this PR; the benchmark that covers this work is client-link-churn in CodSpeed.

Paired runs against main with lane cases added ad hoc to the React Link performance harness (not included; production client bundle, jsdom, Node 24.8, 10 process replicas). Time per navigation, click to first macrotask:

WorkloadLeavingReturning
1,000 departing fixed Links−39.8%−12.5%
1,000 departing updater Links−72.1%−22.6%
1,000 retained fixed Links−23.6%−22.6%
1,000 retained updater Links−20.0%−19.8%
500 staying, 500 departing−38.6%−12.0%

The 12 pre-existing harness cases with resolved differences are 8–15% faster in CPU time; masks is inconclusive (−5.4%, interval crosses zero). These are jsdom numbers: DOM costs are likely overstated, and CodSpeed and browser confirmation are pending.

Solid, paired runs against main with an ad-hoc Solid lane harness (not included; jsdom, 8 interleaved rounds on a shared machine, to be re-measured), 95% intervals:

WorkloadLeavingReturning
lane-departing−27.7% [−32.4, −23.0]
lane-mixed−19.0% [−23.8, −14.3]
lane-retained+2.0% [−1.2, +5.3]+3.1% [+0.2, +6.1]
lane-retained-updaters−6.4% [−19.3, +6.6] (inconclusive)

Other returning directions are within noise.

Vue, paired runs against main with an ad-hoc Vue lane harness (not included; jsdom, 10 interleaved rounds, shared machine), 95% intervals:

WorkloadLeavingReturning
lane-departing−57.5% [−59.2, −55.8]−4.2% [−7.7, −0.7]
lane-retained−11.9% [−14.1, −9.6]
lane-retained-updaters−7.0% [−8.7, −5.4]
lane-mixed−42.9% [−62.7, −23.1]inconclusive

The existing Vue client-nav suite locally shows the links scenario about −12% and nothing else beyond noise.

Client bundle, gzip, against main:

ScenarioDelta
react-router.minimal+114 B
react-router.full+132 B
react-start.minimal+90 B
react-start.deferred-hydration+91 B
react-start.query-integration+113 B
react-start.full+116 B
react-start.rsbuild.minimal+126 B
react-start.rsbuild.minimal-iife+120 B
react-start.rsbuild.full+131 B
solid-router.minimal+42 B
solid-router.full+46 B
solid-start.minimalto be re-measured by CI
solid-start.deferred-hydrationto be re-measured by CI
solid-start.fullto be re-measured by CI
vue-router.minimal+36 B
vue-router.full+41 B

Real browser

Measured on PR commit fba7561 (packages identical to 4512321) against its main merge-base 2413cc0 in headless Chromium 153.0.8010.12 with real mouse clicks, using an ad-hoc real-browser harness that is not part of this PR: 10 interleaved rounds, 40 measured navigations per page load, on an otherwise idle machine (1-minute load median 1.0, from the benchmark itself). Metric: click to first yield (the click task: listeners and their microtasks, which matches Event Timing click processing), unthrottled, leaving direction (/lane/a → /lane/b), median ms and paired change with 95% intervals.

WorkloadReactSolidVue
departing2.9 → 1.9 (−33%)18.5 → 11.0 (−41%)9.8 → 4.4 (−55%)
departing, 50 ms loader1.8 → 0.6 (−63%)14.2 → 6.8 (−52%)6.9 → 0.6 (−92%)
departing updaters6.3 → 2.0 (−69%)28.4 → 11.0 (−62%)13.0 → 4.3 (−67%)
departing updaters, 50 ms loader5.0 → 0.6 (−89%)23.4 → 6.8 (−71%)10.1 → 0.5 (−95%)
retained1.8 → 1.4 (−22%)12.3 → 12.3 (−0.4% [−3.0, +2.2], inconclusive)6.9 → 5.7 (−17%)
mixed2.4 → 1.7 (−26%)15.4 → 11.6 (−25%)8.0 → 5.0 (−38%)

Event Timing INP at 1x: React stays at the ~16 ms frame floor in both arms; Solid drops where the baseline exceeds a frame (departing 24 → 16 ms, departing updaters 32 → 16 ms, mixed 19 → 16 ms); Vue's leaving clicks already sit at the floor, and its returning departing clicks drop 6–8%. At 4x CPU throttling INP drops for all three: React departing updaters 32.4 → 16.0 ms (−51%) and with a loader 25.4 → 15.5 ms; Solid departing 84.5 → 53.0 ms (−37%), departing updaters 125.1 → 53.9 ms (−57%), mixed 72.9 → 57.4 ms (−21%); Vue departing 48.9 → 24.0 ms (−51%), departing updaters 59.5 → 24.0 ms (−60%), mixed 40.5 → 25.7 ms (−37%), retained 34.6 → 32.2 ms (−7%).

Time to destination in the DOM falls with the click task in every leaving row (e.g. with 50 ms loaders at 4x: React departing updaters 75.9 → 57.6 ms, Solid 171.3 → 101.8 ms, Vue 107.7 → 67.4 ms), so the work is removed, not moved to a later task. The returning direction is unchanged or faster, except Solid lane-mixed without loaders (+3.2% at 1x, 19.4 → 19.9 ms; +2.6% at 4x) and Solid lane-retained with loaders (+2.0% / +1.7% at 1x, about 0.2 ms, within the A/A spread for those rows). An A/A run (baseline against itself, 6 rounds, both throttles) puts the click task's median 95% half-width at about 3% and flags 6 of 96 rows, all under ±6.2% and mostly sub-millisecond loader rows; every headline change above is far outside that floor.

Validation already completed

@tanstack/react-router and @tanstack/router-core: test:unit, test:types, test:eslint, test:build. Solid router unit suite. @tanstack/vue-router: test:unit, test:types, test:eslint, test:build. E2E: react-basic, react-basic-file-based, vue-basic. New public-API coverage in link-departing-scope.test.tsx (skip at navigation start, staying params, redirect back, supersession, history traversal, invalidation while pending, revisit, late mount, prop change while held, StrictMode, suspended render, click/preload source, masks, retention) and mask.test.ts.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with the relevant test commands, or tests do not apply to this pull request.
  • I fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Links now consistently follow their displayed destination when clicked or preloaded, including during pending navigation, redirects, and route changes.
    • Updated link destinations and document-reload settings take effect without remounting the link.
    • Masked destinations and source-dependent search and hash values resolve consistently across React, Solid, and Vue routers.
    • Blocked navigations continue to respect navigation blockers.
    1. changeset-bot[bot](GitHub profile, opens in a new tab)commented

      🦋 Changeset detected

      Latest commit: 66814937c7e3893b4f7b28f64c6d3090e2568a2e

      The changes in this PR will be included in the next version bump.

      This PR includes changesets to release 24 packages
      NameType
      @tanstack/react-routerPatch
      @tanstack/router-corePatch
      @tanstack/solid-routerPatch
      @tanstack/vue-routerPatch
      @tanstack/historyPatch
      @tanstack/react-start-clientPatch
      @tanstack/react-start-rscPatch
      @tanstack/react-start-serverPatch
      @tanstack/react-startPatch
      @tanstack/router-generatorPatch
      @tanstack/router-pluginPatch
      @tanstack/solid-start-clientPatch
      @tanstack/solid-start-serverPatch
      @tanstack/start-client-corePatch
      @tanstack/start-plugin-corePatch
      @tanstack/start-server-corePatch
      @tanstack/start-storage-contextPatch
      @tanstack/vue-start-clientPatch
      @tanstack/vue-start-serverPatch
      @tanstack/solid-startPatch
      @tanstack/vue-startPatch
      @tanstack/router-cliPatch
      @tanstack/router-vite-pluginPatch
      @tanstack/start-static-server-functionsPatch

      Not sure what this means? Click here to learn what changesets are.

      Click here if you're a maintainer who wants to add another changeset to this PR

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Repository: TanStack/router/.coderabbit.yaml
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: a79cb19c-e494-4fab-9cc5-2d13a7587630
      📥 Commits

      Reviewing files that changed from the base of the PR and between 10e078d1104f364b16ae8442e8c69988b584d8d6 and 66814937c7e3893b4f7b28f64c6d3090e2568a2e.

      📒 Files selected for processing (4)
      • packages/react-router/tests/link-destination.test.tsx
      • packages/solid-router/tests/link-destination.test.tsx
      • packages/solid-router/tests/link.test.tsx
      • packages/vue-router/tests/link-destination.test.tsx

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.


      📝 Walkthrough

      Walkthrough

      Router core and the React, Solid, and Vue adapters now handle Link locations and destinations across pending route departures. The changes also update masked-location building and caching, navigation blocker handling, preload timers, and Link destination reuse.

      Changes

      Link navigation behavior

      Layer / File(s)Summary
      Route departure and location building
      packages/router-core/src/*, packages/router-core/tests/mask.test.ts, packages/history/src/index.ts, .changeset/*
      Router core identifies departing routes, builds masked locations from the supplied source location, and can cache masked results. History navigation skips blocker retrieval when ignoreBlocker is set. Mask tests cover source-dependent builds and cache updates.
      React Link location scope
      packages/react-router/src/{matchContext,link}.tsx, packages/react-router/tests/link-*.test.tsx, .changeset/link-followup-react-core.md
      React Links use route-scoped location subscriptions and cached destinations. Clicks and preloads use the Link destination state. Tests cover pending departures, masks, changing props, and history state.
      Solid Link destination handling
      packages/solid-router/src/{link.tsx,utils.ts}, packages/solid-router/tests/link-*.test.tsx, .changeset/solid-vue-link-follow-up.md
      Solid Links derive and reuse destinations, retain source locations during departures, and keep preload timers per Link. Tests cover navigation, destination updates, refs, and observer cleanup.
      Vue Link location context
      packages/vue-router/src/*, packages/vue-router/tests/link-*.test.tsx, .changeset/solid-vue-link-follow-up.md
      Vue providers supply route-scoped locations to client Links. Links reuse destination state and track preload timers per Link. Tests cover departures, masks, destination updates, and history state.

      Priority: ➖ Normal

      Estimated code review effort: 4 (Complex) | ~60 minutes

      Change: Refactor

      Sequence Diagram(s)

      sequenceDiagram
        participant RouterCore
        participant LinkScope
        participant LinkInstance
        RouterCore->>LinkScope: Publish location update
        LinkScope->>LinkScope: Check route departure
        alt Route remains mounted
          LinkScope->>LinkInstance: Notify subscribers
        else Route departs
          LinkScope->>LinkScope: Retain captured source location
        end

      Possibly related PRs

      • TanStack/router#8503: Moves source locations from _fromLocation option fields to separate API arguments, while this PR records Link source locations on destination options for clicks and preloads.

      Suggested reviewers: schiller-manuel

      Merge Risk: ⚪ Minimal · up to 66814

      The Link navigation changes appear ready to merge after normal checks; no specific failure requiring a fix is established.

      Security Architecture Review

      Security architecture risk: 🔵 Low · up to 66814

      No new navigation-control bypass or privilege expansion was demonstrated. The normal destination and cleanup paths preserve the intended behavior, but nested navigation and complete failure-state coverage remain uncertain.

      Retained concerns No architecture-level concerns identified.

      Security review details

      Security Blast Radius

      • inferred — The demonstrated affected surface is application navigation and preloading through the three adapters. React shares mutable location state among Links within one router and route scope; the scoped evidence does not establish an expansion into cross-service or credential authority.

      Trust Boundaries and Controls

      • observed — React checks direct URL schemes against the router’s protocol allowlist. Resolved masked, rewritten, or history-formatted destinations also pass through dangerous-protocol checks before being rendered as actionable Links.
      • observed — The scoped reloadDocument test registers a history blocker and asserts that the attempted document navigation leaves history at /a. History rejection paths return before notifying subscribers, providing counterevidence to a demonstrated blocker bypass.

      Resilience and Maintainability Implications

      • observed — React scope notification is synchronous, and each Link snapshot reads the scope’s current source. This supplies counterevidence to a stale captured-notification argument, but does not establish recovery behavior when destination derivation itself triggers a nested publication.
      🚥 Pre-merge checks | ✅ 4 | ❌ 1

      ❌ Failed checks (1 warning)

      Check nameStatusExplanationResolution
      Docstring Coverage⚠️ WarningDocstring coverage is 20.63% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 126 functions across 46 files.Write docstrings for the functions missing them to satisfy the coverage threshold.
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Title check✅ PassedThe title clearly and concisely describes the main change: skipping Link work for routes that a navigation leaves.
      Description check✅ PassedThe description explains the changes, motivation, behavior, measurements, limitations, and validation. It includes the required Changes, Checklist, and Release Impact sections. The checklist item conf…
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      • Fix all pre-merge checks with AI
      ✨ Finishing Touches 💡 1
      📝 Generate docstrings 💡
      • Commit to this branch
      • Create a new PR
      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    3. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-router

    4. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: router-core

    5. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit 66814937c7e3893b4f7b28f64c6d3090e2568a2e

      CommandStatusDurationResult
      nx affected --targets=test:eslint,test:unit,tes...✅ Succeeded3m 46sView ↗
      nx run-many --target=build --exclude=examples/*...✅ Succeeded5sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-10-04 20:56:35 UTC

    6. github-actions[bot](GitHub profile, opens in a new tab)commented

      🚀 Changeset Version Preview

      5 package(s) bumped directly, 19 bumped as dependents.

      🟩 Patch bumps

      PackageVersionReason
      @tanstack/history1.162.4 → 1.162.5Changeset
      @tanstack/react-router1.170.41 → 1.170.42Changeset
      @tanstack/router-core1.171.34 → 1.171.35Changeset
      @tanstack/solid-router1.170.38 → 1.170.39Changeset
      @tanstack/vue-router1.170.37 → 1.170.38Changeset
      @tanstack/react-start1.168.60 → 1.168.61Dependent
      @tanstack/react-start-client1.168.39 → 1.168.40Dependent
      @tanstack/react-start-rsc0.1.59 → 0.1.60Dependent
      @tanstack/react-start-server1.167.46 → 1.167.47Dependent
      @tanstack/router-cli1.167.40 → 1.167.41Dependent
      @tanstack/router-generator1.167.40 → 1.167.41Dependent
      @tanstack/router-plugin1.168.42 → 1.168.43Dependent
      @tanstack/router-vite-plugin1.167.42 → 1.167.43Dependent
      @tanstack/solid-start1.168.57 → 1.168.58Dependent
      @tanstack/solid-start-client1.168.37 → 1.168.38Dependent
      @tanstack/solid-start-server1.167.44 → 1.167.45Dependent
      @tanstack/start-client-core1.170.34 → 1.170.35Dependent
      @tanstack/start-plugin-core1.171.49 → 1.171.50Dependent
      @tanstack/start-server-core1.169.39 → 1.169.40Dependent
      @tanstack/start-static-server-functions1.167.39 → 1.167.40Dependent
      @tanstack/start-storage-context1.167.36 → 1.167.37Dependent
      @tanstack/vue-start1.168.56 → 1.168.57Dependent
      @tanstack/vue-start-client1.167.40 → 1.167.41Dependent
      @tanstack/vue-start-server1.167.44 → 1.167.45Dependent
    7. github-actions[bot](GitHub profile, opens in a new tab)commented

      Bundle Size Benchmarks

      • Commit: 75a51de6d5ea
      • Measured at: 2026-10-04T20:53:20.652Z
      • Baseline source: history:c4cb0e4cae8e
      • Dashboard: bundle-size history

      The following scenarios have bundle-size changes compared with the baseline:

      ScenarioCurrent (gzip)Initial (gzip)RawBrotliTrend
      react-router.minimal84.0 KiB
      +35 B
      83.8 KiB
      +34 B
      261.4 KiB
      +41 B
      73.2 KiB
      -68 B
      ▄▄▅▅▅▅▅▃▁▁▁█
      react-router.full87.5 KiB
      +39 B
      87.4 KiB
      +37 B
      273.2 KiB
      +34 B
      76.4 KiB
      -10 B
      ▅▅▅▅▅▅▅▄▁▁▁█
      solid-router.minimal33.5 KiB
      -38 B
      33.4 KiB
      -37 B
      95.7 KiB
      -214 B
      30.3 KiB
      +14 B
      ████████▆▆▆▁
      solid-router.full38.4 KiB
      -6 B
      38.3 KiB
      -6 B
      110.5 KiB
      -171 B
      34.7 KiB
      -5 B
      ▇▇▇▇▇███▃▃▃▁
      vue-router.minimal49.5 KiB
      +39 B
      49.3 KiB
      +41 B
      136.6 KiB
      -168 B
      44.8 KiB
      +75 B
      ▁▁▂▂▂▃▃▃▁▁▁█
      vue-router.full55.1 KiB
      +43 B
      55.0 KiB
      +43 B
      154.9 KiB
      -165 B
      49.8 KiB
      +46 B
      ▂▂▂▂▂▃▃▃▁▁▁█
      react-start.minimal96.8 KiB
      -8 B
      96.6 KiB
      -7 B
      302.3 KiB
      +36 B
      84.1 KiB
      -15 B
      ▆▆█████▆▃▃▃▁
      react-start.query-integration104.2 KiB
      +18 B
      104.1 KiB
      +18 B
      328.9 KiB
      +26 B
      90.5 KiB
      +141 B
      ██▆▆▆▇▇▇▁▁▁█
      react-start.deferred-hydration97.5 KiB
      -4 B
      96.6 KiB
      -5 B
      303.7 KiB
      +36 B
      84.8 KiB
      +123 B
      ▆▆███▆▆▅▂▂▂▁
      react-start.full99.9 KiB
      +14 B
      99.8 KiB
      +16 B
      312.1 KiB
      +70 B
      86.7 KiB
      -53 B
      ▁▁▃██▇▇▅▁▁▁▆
      react-start.rsbuild.minimal100.4 KiB
      +60 B
      100.2 KiB
      +60 B
      313.3 KiB
      +3 B
      86.7 KiB
      +30 B
      ▂▂▂▂▂▂▂▂▁▁▁█
      react-start.rsbuild.minimal-iife100.8 KiB
      +60 B
      100.6 KiB
      +60 B
      314.3 KiB
      +3 B
      87.1 KiB
      +47 B
      ▂▂▂▂▂▂▂▂▁▁▁█
      react-start.rsbuild.full103.6 KiB
      +56 B
      103.5 KiB
      +56 B
      323.4 KiB
      -1 B
      89.4 KiB
      -88 B
      ▁▁▂▃▃▃▃▃▂▂▂█
      solid-start.minimal46.3 KiB
      -83 B
      46.2 KiB
      -82 B
      135.5 KiB
      -214 B
      41.2 KiB
      -74 B
      ████████▇▇▇▁
      solid-start.deferred-hydration49.3 KiB
      -87 B
      46.2 KiB
      -88 B
      142.9 KiB
      -208 B
      44.0 KiB
      -128 B
      ████████▇▇▇▁
      solid-start.full51.4 KiB
      -31 B
      51.3 KiB
      -26 B
      150.9 KiB
      -179 B
      45.6 KiB
      +5 B
      ▅▅▅█████▆▆▆▁
      vue-start.minimal65.5 KiB
      +9 B
      65.4 KiB
      +8 B
      186.0 KiB
      -168 B
      58.5 KiB
      +48 B
      ▁▁▆▆▆███▂▂▂█
      vue-start.full69.3 KiB
      -17 B
      69.2 KiB
      -17 B
      198.4 KiB
      -167 B
      61.7 KiB
      +47 B
      ▁▁▃█████▇▇▇▁

      Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better.

    8. pkg-pr-new[bot](GitHub profile, opens in a new tab)commented
      More templates

      @tanstack/arktype-adapter

      npm i https://pkg.pr.new/@tanstack/arktype-adapter@8602

      @tanstack/eslint-plugin-router

      npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@8602

      @tanstack/eslint-plugin-start

      npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@8602

      @tanstack/history

      npm i https://pkg.pr.new/@tanstack/history@8602

      @tanstack/nitro-v2-vite-plugin

      npm i https://pkg.pr.new/@tanstack/nitro-v2-vite-plugin@8602

      @tanstack/react-router

      npm i https://pkg.pr.new/@tanstack/react-router@8602

      @tanstack/react-router-devtools

      npm i https://pkg.pr.new/@tanstack/react-router-devtools@8602

      @tanstack/react-router-ssr-query

      npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@8602

      @tanstack/react-start

      npm i https://pkg.pr.new/@tanstack/react-start@8602

      @tanstack/react-start-client

      npm i https://pkg.pr.new/@tanstack/react-start-client@8602

      @tanstack/react-start-rsc

      npm i https://pkg.pr.new/@tanstack/react-start-rsc@8602

      @tanstack/react-start-server

      npm i https://pkg.pr.new/@tanstack/react-start-server@8602

      @tanstack/router-cli

      npm i https://pkg.pr.new/@tanstack/router-cli@8602

      @tanstack/router-core

      npm i https://pkg.pr.new/@tanstack/router-core@8602

      @tanstack/router-devtools

      npm i https://pkg.pr.new/@tanstack/router-devtools@8602

      @tanstack/router-devtools-core

      npm i https://pkg.pr.new/@tanstack/router-devtools-core@8602

      @tanstack/router-generator

      npm i https://pkg.pr.new/@tanstack/router-generator@8602

      @tanstack/router-plugin

      npm i https://pkg.pr.new/@tanstack/router-plugin@8602

      @tanstack/router-ssr-query-core

      npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@8602

      @tanstack/router-utils

      npm i https://pkg.pr.new/@tanstack/router-utils@8602

      @tanstack/router-vite-plugin

      npm i https://pkg.pr.new/@tanstack/router-vite-plugin@8602

      @tanstack/solid-router

      npm i https://pkg.pr.new/@tanstack/solid-router@8602

      @tanstack/solid-router-devtools

      npm i https://pkg.pr.new/@tanstack/solid-router-devtools@8602

      @tanstack/solid-router-ssr-query

      npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@8602

      @tanstack/solid-start

      npm i https://pkg.pr.new/@tanstack/solid-start@8602

      @tanstack/solid-start-client

      npm i https://pkg.pr.new/@tanstack/solid-start-client@8602

      @tanstack/solid-start-server

      npm i https://pkg.pr.new/@tanstack/solid-start-server@8602

      @tanstack/start-client-core

      npm i https://pkg.pr.new/@tanstack/start-client-core@8602

      @tanstack/start-fn-stubs

      npm i https://pkg.pr.new/@tanstack/start-fn-stubs@8602

      @tanstack/start-plugin-core

      npm i https://pkg.pr.new/@tanstack/start-plugin-core@8602

      @tanstack/start-server-core

      npm i https://pkg.pr.new/@tanstack/start-server-core@8602

      @tanstack/start-static-server-functions

      npm i https://pkg.pr.new/@tanstack/start-static-server-functions@8602

      @tanstack/start-storage-context

      npm i https://pkg.pr.new/@tanstack/start-storage-context@8602

      @tanstack/valibot-adapter

      npm i https://pkg.pr.new/@tanstack/valibot-adapter@8602

      @tanstack/virtual-file-routes

      npm i https://pkg.pr.new/@tanstack/virtual-file-routes@8602

      @tanstack/vue-router

      npm i https://pkg.pr.new/@tanstack/vue-router@8602

      @tanstack/vue-router-devtools

      npm i https://pkg.pr.new/@tanstack/vue-router-devtools@8602

      @tanstack/vue-router-ssr-query

      npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@8602

      @tanstack/vue-start

      npm i https://pkg.pr.new/@tanstack/vue-start@8602

      @tanstack/vue-start-client

      npm i https://pkg.pr.new/@tanstack/vue-start-client@8602

      @tanstack/vue-start-server

      npm i https://pkg.pr.new/@tanstack/vue-start-server@8602

      @tanstack/zod-adapter

      npm i https://pkg.pr.new/@tanstack/zod-adapter@8602

      commit: 6681493

    9. codspeed[bot](GitHub profile, opens in a new tab)commented

      Merging this PR will improve performance by 16.1%

      :warning: Different runtime environments detected

      Some benchmarks with significant performance changes were compared across different runtime environments, which may affect the accuracy of the results.

      Open the report in CodSpeed to investigate

      ⚡ 39 improved benchmarks ❌ 1 (👁 1) regressed benchmark ✅ 154 untouched benchmarks ⏩ 3 skipped benchmarks1

      Performance Changes

      ModeBenchmarkBASEHEADEfficiency
      ⚡Simulationclient-links navigation loop (vue)294.3 ms119.2 ms×2.5
      ⚡Simulationclient-links navigation loop (solid)453.3 ms256.7 ms+76.6%
      ⚡Simulationclient-link-churn navigation loop (solid)741.4 ms493.4 ms+50.28%
      ⚡Simulationssr request loop (solid)257.2 ms178.4 ms+44.17%
      ⚡Simulationclient-link-churn navigation loop (vue)608.5 ms475.8 ms+27.9%
      ⚡Simulationclient-link-churn navigation loop (react)300.6 ms243.5 ms+23.44%
      ⚡Simulationclient-route-tree-scale navigation loop (vue)143.3 ms118.6 ms+20.77%
      ⚡Simulationclient-side navigation loop (vue)134.6 ms113 ms+19.15%
      ⚡Simulationclient-control-flow navigation loop (solid)119.1 ms100.1 ms+18.95%
      ⚡Simulationclient-route-tree-scale navigation loop (solid)262 ms221.9 ms+18.1%
      ⚡Simulationclient-side navigation loop (solid)192.7 ms163.2 ms+18.07%
      ⚡Simulationclient-search-params navigation loop (vue)146.3 ms125 ms+17.08%
      ⚡Simulationclient-rewrites navigation loop (solid)151.8 ms129.8 ms+16.91%
      ⚡Simulationclient-control-flow navigation loop (vue)74.8 ms64 ms+16.77%
      ⚡Simulationhydrate restored route state and mixed Links (solid)400 ms345.9 ms+15.62%
      ⚡Simulationclient-async-pipeline navigation loop (vue)77.3 ms67.3 ms+14.89%
      ⚡Memorymem client preload-churn (vue)378.1 KB329.2 KB+14.85%
      ⚡Simulationclient-history navigation loop (solid)105.7 ms95.1 ms+11.17%
      ⚡Simulationclient-async-pipeline navigation loop (solid)126.9 ms114.2 ms+11.15%
      ⚡Simulationclient-links navigation loop (react)91.5 ms82.4 ms+11.04%
      ..................

      :information_source: Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

      [!TIP] Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


      Comparing perf/link-leaving-rule (6681493) with main (c4cb0e4) Open in CodSpeed

      Footnotes

      1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

    10. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: solid-router

    11. Sheraff(GitHub profile, opens in a new tab) changed the title

    12. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: vue-router

    13. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: history

Sign in to join this conversation.