perf(console-ui): refresh TanStack Router and Query - #2555
Open
malinskibeniamin wants to merge 3 commits into
Open
perf(console-ui): refresh TanStack Router and Query#2555malinskibeniamin wants to merge 3 commits into
malinskibeniamin wants to merge 3 commits into
Conversation
Co-Authored-By: OpenAI Codex <noreply@openai.com>
Co-Authored-By: OpenAI Codex <noreply@openai.com>
Contributor
✅ Clean — no registry drift, off-token colours, or ad-hoc classesApp:
Generated by lookout audit-changes. |
malinskibeniamin
requested review from
a team,
Mateoc,
graham-rp,
jvorcak and
yougotashovel
and removed request for
a team
August 10, 2026 12:30
Contributor
|
The latest Buf updates on your PR. Results from workflow Buf CI / validate (pull_request).
|
malinskibeniamin
marked this pull request as ready for review
August 10, 2026 12:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lib-tanstackvendor chunk.defaultPreloadStaleTime: 0, leaving TanStack Query responsible for cache freshness.getMatchedRoutescall site to Router 1.170.22's tuple return and cover it with a regression test.Proven impact
origin/master)d7a4b6bc7)Value proven: Router/Query now use a cacheable async TanStack chunk without increasing the production JavaScript payload.
Method: one paired
bun run build-local-testbuild per ref on the same machine; gzip level 9 summed across emitted JavaScript files.Why
This keeps Router responsible for navigation and route boundaries while Query owns server-cache freshness. It also restores compatibility with the current Router API and refreshes the original PR on current
master.Out of scope: unrelated TanStack packages, existing repository-wide audit findings, and visible design changes.
Commits
06613049dbuild(console-ui): upgrade tanstack query to 5.101.21ba4ca9fdperf(console-ui): tune tanstack router integrationd7a4b6bc7chore(console-ui): refresh tanstack router and queryReviewer guide
frontend/tanstack-router.config.tsandfrontend/rsbuild.config.ts.frontend/src/router-defaults.ts, then both router entrypoints.frontend/src/components/layout/header.tsx.frontend/src/routeTree.gen.tsas generated churn: all 128 route IDs, paths, and full paths are unchanged.Screenshots / surface review
Dogfood evidence
bun run preview -- --host 127.0.0.1 --port 4173getMatchedRoutestuple handling, added a red-green regression test, rebuilt, and replayed successfully.Dependency upgrade path
@tanstack/react-query5.99.2 → 5.101.4;@tanstack/react-query-devtools5.90.2 → 5.101.4;@tanstack/react-router1.170.7 (1.170.17 locked) → 1.170.22;@tanstack/react-router-devtools1.167.0 → 1.167.1;@tanstack/router-plugin1.168.19 → 1.168.27.getMatchedRoutes; the repository's single affected call site was migrated.bun auditreports the same existing 49 advisories onorigin/masterand this branch (26 high, 19 moderate, 4 low); this upgrade introduces none.Test plan
bun install --frozen-lockfile --ignore-scriptsbun run type:checkbun run test— 56 unit files / 784 unit tests plus the full integration suitebun run build-local-testbun auditcomparison🤖 Generated with OpenAI Codex