Skip to content

regression tests#7889

Open
schiller-manuel wants to merge 3 commits into
fix-router-core-lane-match-loaderfrom
regression-4614
Open

regression tests#7889
schiller-manuel wants to merge 3 commits into
fix-router-core-lane-match-loaderfrom
regression-4614

Conversation

@schiller-manuel

@schiller-manuel schiller-manuel commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • New Features
    • Added SSR-disabled example routes for “Issue 6221” (dashboard and article detail) with page metadata and auth/loader-driven accessibility.
    • Updated “Issue 4614” demo: shows client/server context in the root UI and simplifies the navigation link behavior.
  • Tests
    • Expanded E2E coverage for Issue 4614 context recording and intent-style preloading.
    • Added E2E coverage for Issue 6221 document titles and loader-driven content across auth changes.
    • Updated/rewrote related transitioner, hydration, and preload-lane test expectations; removed an obsolete loader/head timing test.

@schiller-manuel
schiller-manuel requested a review from Sheraff July 23, 2026 20:45
@nx-cloud

nx-cloud Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit aba4ddc

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ❌ Failed 3m 42s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 24s View ↗

☁️ Nx Cloud last updated this comment at 2026-07-23 22:40:53 UTC

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 39576099-992a-4a72-a323-629cf9120cef

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR adds Issue 6221 route and head-data coverage, updates Issue 4614 selective-SSR context tracking, and expands router tests for transition ordering, preload contracts, invalidation, and hydration cleanup timing.

Changes

Issue 6221 fresh loader data

Layer / File(s) Summary
Issue 6221 routes and generated wiring
e2e/react-start/basic/src/routes/issue-6221.*, e2e/react-start/basic/src/routeTree.gen.ts
Adds dashboard and client-only article routes, authentication-dependent loading, head metadata, and generated route registrations.
Fresh article data navigation test
e2e/react-start/basic/tests/issue-6221-head.spec.ts
Tests authentication changes, reloads, dashboard navigation, browser back, and refreshed article content and titles.

Issue 4614 context propagation

Layer / File(s) Summary
Client/server context contract
e2e/react-start/selective-ssr/src/routes/__root.tsx, e2e/react-start/selective-ssr/src/routes/issue-4614.tsx
Replaces search-derived context recording with client/server flags and exposes root context in the UI.
Intent preload validation
e2e/react-start/selective-ssr/tests/app.spec.ts, e2e/react-start/selective-ssr/src/routes/__root.tsx
Uses an intent-preloaded Issue 4614 link and verifies updated beforeLoad payloads.

Router runtime contract coverage

Layer / File(s) Summary
Foreground commit and late refresh ordering
packages/react-router/tests/transitioner-render-ack.test.tsx
Verifies late background refreshes do not replace committed foreground navigation or its render events.
Preload context and filtered invalidation
packages/router-core/tests/public-preload-lane-contract.test.ts
Validates masked-location context fields and invalidation of active and cached loader generations.
Hydration completion and failure timing
packages/react-start-client/src/tests/hydrateStart.test.ts, packages/solid-start-client/src/tests/hydrateStart.test.ts
Checks streaming cleanup timing for successful and failed hydration.

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

Sequence Diagram(s)

sequenceDiagram
  participant Browser
  participant ArticleRoute
  participant LocalStorage
  participant DashboardRoute
  Browser->>LocalStorage: set issue-6221-auth
  Browser->>ArticleRoute: navigate to article
  ArticleRoute->>LocalStorage: check authentication
  ArticleRoute-->>Browser: render article and head title
  Browser->>DashboardRoute: navigate to dashboard
  Browser->>ArticleRoute: go back
  ArticleRoute-->>Browser: refresh loader data and head title
Loading
sequenceDiagram
  participant Browser
  participant RootRoute
  participant Issue4614Route
  Browser->>RootRoute: hover issue-4614-link
  RootRoute->>RootRoute: run beforeLoad and record context
  RootRoute->>Issue4614Route: propagate route context during preload
  Issue4614Route->>Issue4614Route: record beforeLoad context
  Browser->>Browser: assert root and target payloads
Loading

Possibly related PRs

  • TanStack/router#7886: Modifies the same selective-SSR Issue 4614 routes and beforeLoad assertions.

Suggested labels: package: react-start, package: solid-start

Suggested reviewers: sheraff, sheraff

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title is too generic and does not describe the actual router regression tests or issue-specific changes. Use a concise, specific title that names the main change, such as the affected issue or feature area.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch regression-4614

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

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

🟩 Patch bumps

Package Version Reason
@tanstack/react-router 1.170.18 → 1.170.19 Changeset
@tanstack/router-core 1.171.15 → 1.171.16 Changeset
@tanstack/solid-router 1.170.18 → 1.170.19 Changeset
@tanstack/vue-router 1.170.17 → 1.170.18 Changeset
@tanstack/react-start 1.168.32 → 1.168.33 Dependent
@tanstack/react-start-client 1.168.16 → 1.168.17 Dependent
@tanstack/react-start-rsc 0.1.31 → 0.1.32 Dependent
@tanstack/react-start-server 1.167.22 → 1.167.23 Dependent
@tanstack/router-cli 1.167.21 → 1.167.22 Dependent
@tanstack/router-generator 1.167.21 → 1.167.22 Dependent
@tanstack/router-plugin 1.168.23 → 1.168.24 Dependent
@tanstack/router-vite-plugin 1.167.23 → 1.167.24 Dependent
@tanstack/solid-start 1.168.32 → 1.168.33 Dependent
@tanstack/solid-start-client 1.168.16 → 1.168.17 Dependent
@tanstack/solid-start-server 1.167.22 → 1.167.23 Dependent
@tanstack/start-client-core 1.170.14 → 1.170.15 Dependent
@tanstack/start-plugin-core 1.171.24 → 1.171.25 Dependent
@tanstack/start-server-core 1.169.17 → 1.169.18 Dependent
@tanstack/start-static-server-functions 1.167.19 → 1.167.20 Dependent
@tanstack/start-storage-context 1.167.17 → 1.167.18 Dependent
@tanstack/vue-start 1.168.31 → 1.168.32 Dependent
@tanstack/vue-start-client 1.167.19 → 1.167.20 Dependent
@tanstack/vue-start-server 1.167.22 → 1.167.23 Dependent

@schiller-manuel
schiller-manuel changed the base branch from main to fix-router-core-lane-match-loader July 23, 2026 20:48

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
e2e/react-start/selective-ssr/tests/app.spec.ts (1)

46-46: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Type the selective-ssr globals instead of casting globalThis to any Declare __issue4614RootBeforeLoads and __issue4614TargetBeforeLoad on the shared browser global type, then use them directly in both the route code and the Playwright test so the contract stays type-checked.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@e2e/react-start/selective-ssr/tests/app.spec.ts` at line 46, Replace the
any-cast access to __issue4614RootBeforeLoads in the Playwright test with a
typed shared browser-global declaration, also declaring
__issue4614TargetBeforeLoad. Update the selective-SSR route code and test to
access both globals directly so their names and values remain type-checked.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@e2e/react-start/selective-ssr/tests/app.spec.ts`:
- Line 46: Replace the any-cast access to __issue4614RootBeforeLoads in the
Playwright test with a typed shared browser-global declaration, also declaring
__issue4614TargetBeforeLoad. Update the selective-SSR route code and test to
access both globals directly so their names and values remain type-checked.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b762bf4d-8cf3-44a3-99ec-787fbafbae82

📥 Commits

Reviewing files that changed from the base of the PR and between 3a55756 and 4594167.

📒 Files selected for processing (2)
  • e2e/react-start/selective-ssr/src/routes/__root.tsx
  • e2e/react-start/selective-ssr/tests/app.spec.ts

@pkg-pr-new

pkg-pr-new Bot commented Jul 23, 2026

Copy link
Copy Markdown
More templates

@tanstack/arktype-adapter

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

@tanstack/eslint-plugin-router

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

@tanstack/eslint-plugin-start

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

@tanstack/history

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

@tanstack/nitro-v2-vite-plugin

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

@tanstack/react-router

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

@tanstack/react-router-devtools

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

@tanstack/react-router-ssr-query

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

@tanstack/react-start

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

@tanstack/react-start-client

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

@tanstack/react-start-rsc

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

@tanstack/react-start-server

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

@tanstack/router-cli

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

@tanstack/router-core

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

@tanstack/router-devtools

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

@tanstack/router-devtools-core

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

@tanstack/router-generator

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

@tanstack/router-plugin

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

@tanstack/router-ssr-query-core

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

@tanstack/router-utils

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

@tanstack/router-vite-plugin

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

@tanstack/solid-router

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

@tanstack/solid-router-devtools

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

@tanstack/solid-router-ssr-query

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

@tanstack/solid-start

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

@tanstack/solid-start-client

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

@tanstack/solid-start-server

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

@tanstack/start-client-core

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

@tanstack/start-fn-stubs

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

@tanstack/start-plugin-core

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

@tanstack/start-server-core

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

@tanstack/start-static-server-functions

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

@tanstack/start-storage-context

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

@tanstack/valibot-adapter

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

@tanstack/virtual-file-routes

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

@tanstack/vue-router

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

@tanstack/vue-router-devtools

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

@tanstack/vue-router-ssr-query

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

@tanstack/vue-start

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

@tanstack/vue-start-client

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

@tanstack/vue-start-server

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

@tanstack/zod-adapter

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

commit: aba4ddc

@schiller-manuel

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts in this pull request

Copilot AI commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved the merge conflicts. The only conflict was in e2e/react-start/selective-ssr/tests/app.spec.ts:

  • Kept the base branch's '#4614: cached parent loader data does not cache its beforeLoad context' test (which has the correct fixed-behavior expectations: cause: 'preload')
  • Kept the base branch's original reload control test name
  • Removed my 'propagates refreshed root context to a child during intent preload' test, which had incorrect expectations (cause: 'enter' instead of cause: 'preload') — the base branch already includes the correct version of this test

The __root.tsx file merged cleanly without conflicts.

@schiller-manuel
schiller-manuel requested a review from a team as a code owner July 23, 2026 21:16
@schiller-manuel schiller-manuel changed the title failing regression test for #4614 regression tests Jul 23, 2026
@schiller-manuel
schiller-manuel changed the base branch from fix-router-core-lane-match-loader to main July 23, 2026 22:06
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Benchmarks

  • Commit: cb2e07104847
  • Measured at: 2026-07-23T22:39:52.385Z
  • Baseline source: history:88f366ab8e04
  • Dashboard: bundle-size history

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

Scenario Current (gzip) Delta vs baseline Initial gzip Raw Brotli Trend
react-router.minimal 87.37 KiB +21 B (+0.02%) 87.23 KiB 269.79 KiB 76.02 KiB ▁▁▁▁▁▁▁▁▁▁▁█
react-router.full 91.14 KiB +75 B (+0.08%) 91.00 KiB 281.80 KiB 79.37 KiB ▁▁▁▁▁▁▁▁▁▁▁█
solid-router.minimal 35.07 KiB -466 B (-1.28%) 34.95 KiB 100.56 KiB 31.65 KiB ███████████▁
solid-router.full 40.16 KiB -434 B (-1.04%) 40.03 KiB 115.79 KiB 36.16 KiB ███████████▁
vue-router.minimal 52.36 KiB -655 B (-1.21%) 52.23 KiB 143.72 KiB 47.18 KiB ███████████▁
vue-router.full 58.32 KiB -633 B (-1.05%) 58.19 KiB 162.50 KiB 52.34 KiB ███████████▁
react-start.minimal 102.38 KiB +408 B (+0.39%) 102.25 KiB 318.91 KiB 88.83 KiB ▁▁▁▁▁▁▁▁▁▁▁█
react-start.deferred-hydration 103.12 KiB +406 B (+0.39%) 102.27 KiB 320.28 KiB 89.52 KiB ▁▁▁▁▁▁▁▁▁▁▁█
react-start.full 105.71 KiB +354 B (+0.33%) 105.57 KiB 328.91 KiB 91.72 KiB ▁▁▁▁▁▁▁▁▁▁▁█
react-start.rsbuild.minimal 100.05 KiB +383 B (+0.38%) 99.88 KiB 313.36 KiB 86.25 KiB ▁▁▁▁▁▁▁▁▁▁▁█
react-start.rsbuild.minimal-iife 100.45 KiB +381 B (+0.37%) 100.29 KiB 314.29 KiB 86.69 KiB ▁▁▁▁▁▁▁▁▁▁▁█
react-start.rsbuild.full 103.39 KiB +513 B (+0.49%) 103.22 KiB 323.50 KiB 89.08 KiB ▁▁▁▁▁▁▁▁▁▁▁█
solid-start.minimal 49.95 KiB +349 B (+0.69%) 49.82 KiB 148.56 KiB 44.34 KiB ▁▁▁▁▁▁▁▁▁▁▁█
solid-start.deferred-hydration 53.22 KiB +357 B (+0.66%) 49.88 KiB 156.60 KiB 47.33 KiB ▁▁▁▁▁▁▁▁▁▁▁█
solid-start.full 55.27 KiB -158 B (-0.28%) 55.14 KiB 164.35 KiB 48.91 KiB ███████████▁
vue-start.minimal 70.73 KiB -304 B (-0.42%) 70.60 KiB 201.60 KiB 62.81 KiB ███████████▁
vue-start.full 74.70 KiB -344 B (-0.45%) 74.57 KiB 214.21 KiB 66.38 KiB ███████████▁

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@e2e/react-start/selective-ssr/src/routes/__root.tsx`:
- Around line 62-68: Define a shared TypeScript global declaration for the Issue
4614 instrumentation payloads, then remove the globalThis as any casts. In
e2e/react-start/selective-ssr/src/routes/__root.tsx lines 62-68, type
__issue4614RootBeforeLoads; in
e2e/react-start/selective-ssr/src/routes/issue-4614.tsx lines 6-10, type
__issue4614TargetBeforeLoad; and in
e2e/react-start/selective-ssr/tests/app.spec.ts line 19, read the typed root
payload directly. Ensure all sites reuse the same shared contract.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7cf4ba4a-6ce8-494e-a9bf-1b029b33397d

📥 Commits

Reviewing files that changed from the base of the PR and between 4594167 and 279db75.

📒 Files selected for processing (8)
  • e2e/react-start/basic/src/routeTree.gen.ts
  • e2e/react-start/basic/src/routes/issue-6221.article.$id.tsx
  • e2e/react-start/basic/src/routes/issue-6221.dashboard.tsx
  • e2e/react-start/basic/tests/issue-6221-head.spec.ts
  • e2e/react-start/selective-ssr/src/routes/__root.tsx
  • e2e/react-start/selective-ssr/src/routes/issue-4614.tsx
  • e2e/react-start/selective-ssr/tests/app.spec.ts
  • packages/router-core/tests/issue-6221-head-waits-for-loader.test.ts
💤 Files with no reviewable changes (1)
  • packages/router-core/tests/issue-6221-head-waits-for-loader.test.ts

Comment on lines 62 to 68
const calls = ((globalThis as any).__issue4614RootBeforeLoads ??= [])
calls.push({
cause,
preload,
root,
issue4614Context,
isClient,
isServer,
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Define one typed global contract for Issue 4614 instrumentation.

The new globalThis as any casts erase the payload shape across the route and its regression test. Add a shared TypeScript declaration for these globals and reuse it everywhere.

  • e2e/react-start/selective-ssr/src/routes/__root.tsx#L62-L68: type __issue4614RootBeforeLoads.
  • e2e/react-start/selective-ssr/src/routes/issue-4614.tsx#L6-L10: type __issue4614TargetBeforeLoad.
  • e2e/react-start/selective-ssr/tests/app.spec.ts#L19-L19: read the typed root payload instead of casting to any.
📍 Affects 3 files
  • e2e/react-start/selective-ssr/src/routes/__root.tsx#L62-L68 (this comment)
  • e2e/react-start/selective-ssr/src/routes/issue-4614.tsx#L6-L10
  • e2e/react-start/selective-ssr/tests/app.spec.ts#L19-L19
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@e2e/react-start/selective-ssr/src/routes/__root.tsx` around lines 62 - 68,
Define a shared TypeScript global declaration for the Issue 4614 instrumentation
payloads, then remove the globalThis as any casts. In
e2e/react-start/selective-ssr/src/routes/__root.tsx lines 62-68, type
__issue4614RootBeforeLoads; in
e2e/react-start/selective-ssr/src/routes/issue-4614.tsx lines 6-10, type
__issue4614TargetBeforeLoad; and in
e2e/react-start/selective-ssr/tests/app.spec.ts line 19, read the typed root
payload directly. Ensure all sites reuse the same shared contract.

Source: Coding guidelines

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
packages/react-start-client/src/tests/hydrateStart.test.ts (1)

23-24: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Preserve type safety in both hydration fixtures.

Both tests bypass the window.$_TSR contract with as any; replace it with the declared shape or a narrow test-specific type.

  • packages/react-start-client/src/tests/hydrateStart.test.ts#L23-L24: remove the as any cast from the React fixture.
  • packages/solid-start-client/src/tests/hydrateStart.test.ts#L23-L24: remove the as any cast from the Solid fixture.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/react-start-client/src/tests/hydrateStart.test.ts` around lines 23 -
24, Remove the as any cast from the window.$_TSR hydration fixture in
packages/react-start-client/src/tests/hydrateStart.test.ts lines 23-24, using
the declared contract or a narrow test-specific type; make the same change to
the corresponding window.$_TSR fixture in
packages/solid-start-client/src/tests/hydrateStart.test.ts lines 23-24.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@packages/react-start-client/src/tests/hydrateStart.test.ts`:
- Around line 23-24: Remove the as any cast from the window.$_TSR hydration
fixture in packages/react-start-client/src/tests/hydrateStart.test.ts lines
23-24, using the declared contract or a narrow test-specific type; make the same
change to the corresponding window.$_TSR fixture in
packages/solid-start-client/src/tests/hydrateStart.test.ts lines 23-24.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 932b396a-fc47-4514-a900-eb6b1f43b6b8

📥 Commits

Reviewing files that changed from the base of the PR and between 279db75 and 0c5da78.

📒 Files selected for processing (4)
  • packages/react-router/tests/transitioner-render-ack.test.tsx
  • packages/react-start-client/src/tests/hydrateStart.test.ts
  • packages/router-core/tests/public-preload-lane-contract.test.ts
  • packages/solid-start-client/src/tests/hydrateStart.test.ts

@codspeed-hq

codspeed-hq Bot commented Jul 23, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 11.8%

⚠️ 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

⚡ 3 improved benchmarks
❌ 11 regressed benchmarks
✅ 166 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Memory mem server error-paths redirect (vue) 306 KB 803.4 KB -61.91%
Memory mem client unique-location-churn (solid) 341.1 KB 552.9 KB -38.3%
Simulation ssr server-fn not-found (solid) 61.8 ms 66.8 ms -7.57%
Simulation ssr server-fn POST (solid) 64.6 ms 69.5 ms -7%
Simulation ssr server-fn during document ssr (react) 63.5 ms 67.3 ms -5.65%
Simulation ssr server-fn send-context (solid) 65.8 ms 69.6 ms -5.47%
Memory mem server error-paths not-found (react) 242.6 KB 253.7 KB -4.36%
Memory mem server error-paths not-found (vue) 332 KB 346.4 KB -4.17%
Simulation ssr server-fn GET (solid) 71.4 ms 74.3 ms -3.95%
Simulation ssr selective (solid) 70.3 ms 73.1 ms -3.9%
Memory mem client navigation-churn (solid) 544.9 KB 563.5 KB -3.29%
Memory mem server error-paths not-found (solid) 751.3 KB 692.7 KB +8.46%
Memory mem server peak-large-page (solid) 819.4 KB 787.8 KB +4.02%
Memory mem server error-paths redirect (solid) 283.4 KB 273.6 KB +3.62%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing regression-4614 (aba4ddc) with fix-router-core-lane-match-loader (2d639e1)

Open in CodSpeed

@schiller-manuel
schiller-manuel changed the base branch from main to fix-router-core-lane-match-loader July 23, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants