fix(router-core): avoid preload cleanup crashes after invalidation 2 #7006
main fromopencode/shiny-orchid-2·opened Alternative solution to https://github.com/TanStack/router/pull/7003
Summary by CodeRabbit#
Bug Fixes
- Resolved preload cache eviction errors by improving early return logic
- Enhanced robustness when cache operations occur during active preloads
- Improved match availability checks throughout loader execution
Tests
- Added tests verifying preload stability during cache operations like clearExpiredCache and invalidate
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-router
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: router-core
🤖 Nx Cloud AI Fix Eligible#
To disable these notifications, a workspace admin can disable them [in workspace settings.](https://cloud.nx.app/orgs/6412ca9d1c251d000efa21ba/workspaces/6442f7de8226a6291646a813/settings/self-healing-ci?utm_source=pull-request&utm_medium=comment)An automatically generated fix could have helped fix failing tasks for this run, but Self-healing CI is disabled for this workspace. Visit workspace settings to enable it and get automatic fixes in future runs.
View your CI Pipeline Execution ↗ for commit 4bf77c51a6e7062ae0c528ee0c94568a6f3b657c
Command Status Duration Result nx affected --targets=test:eslint,test:unit,tes...❌ Failed 14m 51s View ↗ nx run-many --target=build --exclude=examples/*...✅ Succeeded 1m 48s View ↗
☁️ Nx Cloud last updated this comment at
2026-03-21 17:43:42UTC🚀 Changeset Version Preview#
1 package(s) bumped directly, 21 bumped as dependents.
🟩 Patch bumps#
Package Version Reason @tanstack/router-core1.168.1 → 1.168.2 Changeset @tanstack/react-router1.168.1 → 1.168.2 Dependent @tanstack/react-start1.167.2 → 1.167.3 Dependent @tanstack/react-start-client1.166.16 → 1.166.17 Dependent @tanstack/react-start-server1.166.16 → 1.166.17 Dependent @tanstack/router-cli1.166.16 → 1.166.17 Dependent @tanstack/router-generator1.166.15 → 1.166.16 Dependent @tanstack/router-plugin1.167.2 → 1.167.3 Dependent @tanstack/router-vite-plugin1.166.17 → 1.166.18 Dependent @tanstack/solid-router1.168.1 → 1.168.2 Dependent @tanstack/solid-start1.167.2 → 1.167.3 Dependent @tanstack/solid-start-client1.166.15 → 1.166.16 Dependent @tanstack/solid-start-server1.166.15 → 1.166.16 Dependent @tanstack/start-client-core1.167.1 → 1.167.2 Dependent @tanstack/start-plugin-core1.167.5 → 1.167.6 Dependent @tanstack/start-server-core1.167.1 → 1.167.2 Dependent @tanstack/start-static-server-functions1.166.17 → 1.166.18 Dependent @tanstack/start-storage-context1.166.15 → 1.166.16 Dependent @tanstack/vue-router1.168.1 → 1.168.2 Dependent @tanstack/vue-start1.167.2 → 1.167.3 Dependent @tanstack/vue-start-client1.166.15 → 1.166.16 Dependent @tanstack/vue-start-server1.166.15 → 1.166.16 Dependent Bundle Size Benchmarks#
- Commit:
d7445e048d7d - Measured at:
2026-03-21T17:29:48.955Z - Baseline source:
history:d7445e048d7d - Dashboard: bundle-size history
Scenario Current (gzip) Delta vs baseline Raw Brotli Trend react-router.minimal88.89 KiB +353 B (+0.39%) 280.60 KiB 77.18 KiB ▁▁▁▁▁▆▆▆▆▆▆█ react-router.full92.05 KiB +348 B (+0.37%) 291.33 KiB 79.81 KiB ▁▁▁▁▁▆▆▆▆▆▆█ solid-router.minimal36.42 KiB +296 B (+0.80%) 110.28 KiB 32.68 KiB █████▁▁▁▁▁▁▃ solid-router.full40.79 KiB +309 B (+0.75%) 123.42 KiB 36.47 KiB █████▁▁▁▁▁▁▄ vue-router.minimal54.40 KiB +299 B (+0.54%) 156.58 KiB 48.73 KiB ▁▁▁▁▁▇▇▇▇▇▇█ vue-router.full59.18 KiB +298 B (+0.49%) 171.73 KiB 52.93 KiB ▁▁▁▁▁▇▇▇▇▇▇█ react-start.minimal103.33 KiB +359 B (+0.34%) 328.67 KiB 89.29 KiB ▁▁▁▁▁▆▆▆▆▆▆█ react-start.full106.68 KiB +340 B (+0.31%) 338.98 KiB 92.13 KiB ▁▁▁▁▁▆▆▆▆▆▆█ solid-start.minimal50.60 KiB +290 B (+0.56%) 156.78 KiB 44.57 KiB █████▁▁▁▁▁▁▃ solid-start.full56.02 KiB +291 B (+0.51%) 172.61 KiB 49.16 KiB █████▁▁▁▁▁▁▄ Trend sparkline is historical gzip bytes ending with this PR measurement; lower is better.
- Commit:
More templates
- tanstack-router-solid-example-authenticated-routes
- tanstack-router-solid-example-authenticated-routes-firebase
- tanstack-router-solid-example-basic
- tanstack-router-solid-example-basic-default-search-params
- tanstack-router-solid-example-basic-devtools-panel
- tanstack-router-solid-example-basic-file-based
- tanstack-router-solid-example-basic-non-nested-devtools
- tanstack-router-solid-example-basic-solid-query
- tanstack-router-solid-example-basic-solid-query-file-based
- tanstack-router-solid-example-basic-ssr-file-based
- tanstack-router-solid-example-basic-ssr-streaming-file-based
- tanstack-router-solid-example-basic-virtual-file-based
- tanstack-router-solid-example-basic-virtual-inside-file-based
- tanstack-router-solid-example-deferred-data
- tanstack-router-solid-i18n-paraglide
- tanstack-router-solid-example-kitchen-sink
- tanstack-router-solid-example-kitchen-sink-file-based
- tanstack-router-solid-example-kitchen-sink-solid-query
- tanstack-router-solid-example-kitchen-sink-solid-query-file-based
- tanstack-router-solid-example-large-file-based
- tanstack-router-solid-example-location-masking
- tanstack-router-solid-example-navigation-blocking
- tanstack-router-solid-example-quickstart
- tanstack-router-solid-example-quickstart-esbuild-file-based
- tanstack-router-solid-example-quickstart-file-based
- tanstack-router-solid-example-quickstart-rspack-file-based
- tanstack-router-solid-example-quickstart-webpack-file-based
- @tanstack/router-solid-mono-simple
- router-solid-mono-simple-lazy
- router-solid-monorepo-solid-query
- tanstack-router-solid-example-scroll-restoration
- tanstack-solid-router-search-validator-adapters
- tanstack-solid-start-example-basic
- tanstack-solid-start-example-basic-auth
- tanstack-solid-start-example-basic-authjs
- tanstack-solid-start-example-basic-cloudflare
- tanstack-solid-start-example-basic-netlify
- tanstack-solid-start-example-basic-nitro
- tanstack-start-example-basic-solid-query
- tanstack-solid-start-example-basic-static
- tanstack-solid-start-bun-hosting
- tanstack-solid-start-example-convex-better-auth
- tanstack-solid-start-example-counter
- tanstack-solid-start-i18n-paraglide
- tanstack-solid-start-example-large
- tanstack-solid-start-streaming-data-from-server-functions
- tanstack-solid-start-example-supabase-basic
- tanstack-solid-start-tailwind-v4
- tanstack-router-solid-example-view-transitions
- tanstack-router-solid-example-with-framer-motion
- tanstack-router-solid-example-with-trpc
- tanstack-router-vue-example-basic-jsx
- tanstack-router-vue-example-basic-file-based-jsx
- tanstack-router-vue-example-basic-file-based-sfc
- tanstack-router-react-example-authenticated-routes
- tanstack-router-react-example-authenticated-routes-firebase
- tanstack-router-react-example-basic
- tanstack-router-react-example-basic-default-search-params
- tanstack-router-react-example-basic-devtools-panel
- tanstack-router-react-example-basic-file-based
- tanstack-router-react-example-basic-non-nested-devtools
- tanstack-router-react-example-react-query
- tanstack-router-react-example-basic-react-query-file-based
- tanstack-router-react-example-basic-ssr-file-based
- tanstack-router-react-example-basic-ssr-streaming-file-based
- tanstack-router-react-example-basic-virtual-file-based
- tanstack-router-react-example-basic-virtual-inside-file-based
- tanstack-router-react-example-deferred-data
- tanstack-router-i18n-paraglide
- tanstack-router-react-example-kitchen-sink
- tanstack-router-react-example-kitchen-sink-file-based
- tanstack-router-react-example-kitchen-sink-react-query
- tanstack-router-react-example-kitchen-sink-react-query-file-based
- tanstack-router-react-example-large-file-based
- tanstack-router-react-example-location-masking
- tanstack-router-react-example-navigation-blocking
- tanstack-router-react-example-quickstart
- tanstack-router-react-example-quickstart-esbuild-file-based
- tanstack-router-react-example-quickstart-file-based
- tanstack-router-react-example-quickstart-rspack-file-based
- tanstack-router-react-example-quickstart-webpack-file-based
- router-monorepo-react-query
- router-mono-simple
- router-mono-simple-lazy
- tanstack-router-react-example-scroll-restoration
- tanstack-search-validator-adapters
- tanstack-start-example-bare
- tanstack-start-example-basic
- tanstack-start-example-basic-auth
- tanstack-router-react-example-basic-authjs
- tanstack-start-example-basic-cloudflare
- tanstack-start-example-basic-react-query
- tanstack-start-example-basic-rsc
- tanstack-start-example-basic-static
- tanstack-start-bun-hosting
- tanstack-start-example-clerk-basic
- tanstack-start-example-convex-trellaux
- tanstack-start-example-counter
- tanstack-start-i18n-paraglide
- tanstack-start-example-large
- tanstack-start-example-material-ui
- tanstack-start-streaming-data-from-server-functions
- tanstack-start-example-supabase-basic
- tanstack-start-tailwind-v4
- tanstack-start-example-trellaux
- tanstack-start-example-workos
- tanstack-router-react-example-view-transitions
- tanstack-router-react-example-with-framer-motion
- tanstack-router-react-example-with-trpc
- tanstack-router-react-example-with-trpc-react-query
@tanstack/arktype-adapter
npm i https://pkg.pr.new/@tanstack/arktype-adapter@7006@tanstack/eslint-plugin-router
npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@7006@tanstack/history
npm i https://pkg.pr.new/@tanstack/history@7006@tanstack/nitro-v2-vite-plugin
npm i https://pkg.pr.new/@tanstack/nitro-v2-vite-plugin@7006@tanstack/react-router
npm i https://pkg.pr.new/@tanstack/react-router@7006@tanstack/react-router-devtools
npm i https://pkg.pr.new/@tanstack/react-router-devtools@7006@tanstack/react-router-ssr-query
npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@7006@tanstack/react-start
npm i https://pkg.pr.new/@tanstack/react-start@7006@tanstack/react-start-client
npm i https://pkg.pr.new/@tanstack/react-start-client@7006@tanstack/react-start-server
npm i https://pkg.pr.new/@tanstack/react-start-server@7006@tanstack/router-cli
npm i https://pkg.pr.new/@tanstack/router-cli@7006@tanstack/router-core
npm i https://pkg.pr.new/@tanstack/router-core@7006@tanstack/router-devtools
npm i https://pkg.pr.new/@tanstack/router-devtools@7006@tanstack/router-devtools-core
npm i https://pkg.pr.new/@tanstack/router-devtools-core@7006@tanstack/router-generator
npm i https://pkg.pr.new/@tanstack/router-generator@7006@tanstack/router-plugin
npm i https://pkg.pr.new/@tanstack/router-plugin@7006@tanstack/router-ssr-query-core
npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@7006@tanstack/router-utils
npm i https://pkg.pr.new/@tanstack/router-utils@7006@tanstack/router-vite-plugin
npm i https://pkg.pr.new/@tanstack/router-vite-plugin@7006@tanstack/solid-router
npm i https://pkg.pr.new/@tanstack/solid-router@7006@tanstack/solid-router-devtools
npm i https://pkg.pr.new/@tanstack/solid-router-devtools@7006@tanstack/solid-router-ssr-query
npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@7006@tanstack/solid-start
npm i https://pkg.pr.new/@tanstack/solid-start@7006@tanstack/solid-start-client
npm i https://pkg.pr.new/@tanstack/solid-start-client@7006@tanstack/solid-start-server
npm i https://pkg.pr.new/@tanstack/solid-start-server@7006@tanstack/start-client-core
npm i https://pkg.pr.new/@tanstack/start-client-core@7006@tanstack/start-fn-stubs
npm i https://pkg.pr.new/@tanstack/start-fn-stubs@7006@tanstack/start-plugin-core
npm i https://pkg.pr.new/@tanstack/start-plugin-core@7006@tanstack/start-server-core
npm i https://pkg.pr.new/@tanstack/start-server-core@7006@tanstack/start-static-server-functions
npm i https://pkg.pr.new/@tanstack/start-static-server-functions@7006@tanstack/start-storage-context
npm i https://pkg.pr.new/@tanstack/start-storage-context@7006@tanstack/valibot-adapter
npm i https://pkg.pr.new/@tanstack/valibot-adapter@7006@tanstack/virtual-file-routes
npm i https://pkg.pr.new/@tanstack/virtual-file-routes@7006@tanstack/vue-router
npm i https://pkg.pr.new/@tanstack/vue-router@7006@tanstack/vue-router-devtools
npm i https://pkg.pr.new/@tanstack/vue-router-devtools@7006@tanstack/vue-router-ssr-query
npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@7006@tanstack/vue-start
npm i https://pkg.pr.new/@tanstack/vue-start@7006@tanstack/vue-start-client
npm i https://pkg.pr.new/@tanstack/vue-start-client@7006@tanstack/vue-start-server
npm i https://pkg.pr.new/@tanstack/vue-start-server@7006@tanstack/zod-adapter
npm i https://pkg.pr.new/@tanstack/zod-adapter@7006commit:
4bf77c5💡 Codex Review#
Here are some automated review suggestions for this pull request.
Reviewed commit:
4bf77c51a6ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@@ -393,4 +403,5 @@393403 index: number,394404 route: AnyRoute,395405 ): void | Promise<void> => {396- const match = inner.router.getMatch(matchId)!406+ const match = inner.router.getMatch(matchId)407+ if (!match) returnSkip
beforeLoadwhen the match was already canceledcancelMatch()now resolves_nonReactive.beforeLoadPromise/loaderPromisebefore aborting the match (packages/router-core/src/router.ts:1790-1794). That wakes any concurrent load that was blocked inpreBeforeLoadSetup(), but this entry point only checks for a missing match, not an aborted one. If the canceled match is still present in the active/pending pool (for example during aninvalidate()or same-URL reload while an asyncbeforeLoadis in flight), the stale load continues intoroute.options.beforeLoadand can still redirect or mutate__beforeLoadContextafter the navigation was canceled.Useful? React with 👍 / 👎.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/router-core/src/router.ts (1)
1541-1577: ⚠️ Potential issue | 🟠 MajorPreserve the previous
loadPromisewhen reviving an aborted match.load-matches.tschains the next suspense promise onto the currentloadPromiseso older waiters are released when the retry completes. This reset branch always replacesloadPromise, which severs that chain and can leave an already-suspended match waiting on an orphaned promise after an invalidate/cancel+retry cycle.💡 Suggested fix
+ const preservedLoadPromise = + existingMatch._nonReactive.loadPromise ?? + createControlledPromise<void>() + match = { ...existingMatch, cause, @@ _nonReactive: { ...existingMatch._nonReactive, - loadPromise: - existingMatch._nonReactive.loadPromise ?? - createControlledPromise(), + loadPromise: preservedLoadPromise, }, ...(shouldResetExistingMatch ? { @@ _nonReactive: { ...existingMatch._nonReactive, beforeLoadPromise: undefined, loaderPromise: undefined, pendingTimeout: undefined, - loadPromise: createControlledPromise(), + loadPromise: preservedLoadPromise, displayPendingPromise: undefined, minPendingPromise: undefined, dehydrated: undefined, error: undefined,🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/router-core/src/router.ts` around lines 1541 - 1577, When reviving an aborted match we currently always replace existingMatch._nonReactive.loadPromise with createControlledPromise(), which breaks the chaining used by load-matches.ts and can orphan older waiters; update the reset branch that runs when shouldResetExistingMatch is true to preserve existingMatch._nonReactive.loadPromise if it exists (i.e., leave loadPromise as existingMatch._nonReactive.loadPromise rather than unconditionally creating a new one), while still resetting other nonReactive fields like beforeLoadPromise, loaderPromise, pendingTimeout, displayPendingPromise, minPendingPromise, dehydrated, and error; reference the match construction that spreads existingMatch and the nested _nonReactive block to locate the change.🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed. Inline comments: In `@packages/router-core/src/router.ts`: - Around line 2798-2820: The code re-filters cachedMatches after calling cancelMatch, but cancelMatch mutates match objects so the second filter can fail; instead, collect the ids of matchesToClear (e.g., const idsToClear = new Set(matchesToClear.map(m => m.id))), call this.cancelMatch for each match, and then call this.stores.setCachedMatches(cachedMatches.filter(m => !idsToClear.has(m.id))); update references to matchesToClear, cachedMatches, cancelMatch, and this.stores.setCachedMatches accordingly so removal is done by id rather than re-running the predicate that may observe mutated _nonReactive fields. --- Outside diff comments: In `@packages/router-core/src/router.ts`: - Around line 1541-1577: When reviving an aborted match we currently always replace existingMatch._nonReactive.loadPromise with createControlledPromise(), which breaks the chaining used by load-matches.ts and can orphan older waiters; update the reset branch that runs when shouldResetExistingMatch is true to preserve existingMatch._nonReactive.loadPromise if it exists (i.e., leave loadPromise as existingMatch._nonReactive.loadPromise rather than unconditionally creating a new one), while still resetting other nonReactive fields like beforeLoadPromise, loaderPromise, pendingTimeout, displayPendingPromise, minPendingPromise, dehydrated, and error; reference the match construction that spreads existingMatch and the nested _nonReactive block to locate the change.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
93789982-c782-477e-8e9b-f8ea9eb6d6c9📥 Commits
Reviewing files that changed from the base of the PR and between d7445e048d7dbc0c3455eb7af2c18938186468e1 and 4bf77c51a6e7062ae0c528ee0c94568a6f3b657c.
📒 Files selected for processing (5)
.changeset/moody-kings-travel.mdpackages/react-router/src/Match.tsxpackages/router-core/src/load-matches.tspackages/router-core/src/router.tspackages/router-core/tests/load.test.ts
@@ -2764,6 +2803,18 @@2803+ : cachedMatches2804+2805+ matchesToClear.forEach((match) => {2806+ if (2807+ match.status === 'pending' ||2808+ match.isFetching ||2809+ match._nonReactive.beforeLoadPromise ||2810+ match._nonReactive.loaderPromise ||2811+ match._nonReactive.loadPromise2812+ ) {2813+ this.cancelMatch(match.id)2814+ }2815+ })2816+27642817 if (filter !== undefined) {27652818 this.stores.setCachedMatches(2766- this.stores.cachedMatchesSnapshot.state.filter(2767- (m) => !filter(m as MakeRouteMatchUnion<this>),2768- ),2819+ cachedMatches.filter((m) => !filter(m as MakeRouteMatchUnion<this>)),27692820 )⚠️ Potential issue | 🟠 Major
Remove cleared matches by id instead of re-running the filter.
cancelMatch()mutates the same match objects before the secondfilter(...)runs. If a caller's filter depends on_nonReactivepromise fields or abort state, the entry can stop matching and remain incachedMatcheseven though it was selected for clearing.💡 Suggested fix
const matchesToClear = filter !== undefined ? cachedMatches.filter((match) => filter(match as MakeRouteMatchUnion<this>), ) : cachedMatches + const matchIdsToClear = new Set(matchesToClear.map((match) => match.id)) @@ if (filter !== undefined) { this.stores.setCachedMatches( - cachedMatches.filter((m) => !filter(m as MakeRouteMatchUnion<this>)), + cachedMatches.filter((m) => !matchIdsToClear.has(m.id)), ) } else {📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Suggested change2798+ const matchesToClear =2799+ filter !== undefined2800+ ? cachedMatches.filter((match) =>2801+ filter(match as MakeRouteMatchUnion<this>),2802+ )2803+ : cachedMatches2804+2805+ const matchIdsToClear = new Set(matchesToClear.map((match) => match.id))2806+2807+ matchesToClear.forEach((match) => {2808+ if (2809+ match.status === 'pending' ||2810+ match.isFetching ||2811+ match._nonReactive.beforeLoadPromise ||2812+ match._nonReactive.loaderPromise ||2813+ match._nonReactive.loadPromise2814+ ) {2815+ this.cancelMatch(match.id)2816+ }2817+ })2818+2819+ if (filter !== undefined) {2820+ this.stores.setCachedMatches(2821+ cachedMatches.filter((m) => !matchIdsToClear.has(m.id)),2822+ )🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/router-core/src/router.ts` around lines 2798 - 2820, The code re-filters cachedMatches after calling cancelMatch, but cancelMatch mutates match objects so the second filter can fail; instead, collect the ids of matchesToClear (e.g., const idsToClear = new Set(matchesToClear.map(m => m.id))), call this.cancelMatch for each match, and then call this.stores.setCachedMatches(cachedMatches.filter(m => !idsToClear.has(m.id))); update references to matchesToClear, cachedMatches, cancelMatch, and this.stores.setCachedMatches accordingly so removal is done by id rather than re-running the predicate that may observe mutated _nonReactive fields.Merging this PR will not alter performance#
✅ 6untouched benchmarks
Comparingopencode/shiny-orchid-2(4bf77c5) withmain(d7445e0)Sheraff(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
📝 Walkthrough
Walkthrough#
This PR enhances route preload robustness by preventing cache eviction errors. Changes include adding match availability guards, improving promise handling centralization, updating cancellation semantics to resolve pending promises, validating preload results correspond to router state, and verifying cache lifecycle operations don't break in-flight preloads.
Changes#
.changeset/moody-kings-travel.md@tanstack/router-corenoting cache eviction error prevention during preload.packages/react-router/src/Match.tsxgetMatchNonReactivePromise()helper to centralize suspense promise selection fromrouter.getMatch()or fallback tomatch._nonReactive, replacing direct promise throws across multiple status checks.packages/router-core/src/load-matches.tsmatchIsAvailable()type guard to gate operations on missing/aborted matches. Replaced non-null assertions with early returns in preload setup, loader execution, and abort-aware cleanup. UpdatedgetLoaderContextto accept concrete match instead of matchId. Added availability/abort checks before loader logic, redirect/notFound handling, state commits, and in catch flows.packages/router-core/src/router.tsloadPromisewhen aborted. Updated cancellation semantics to resolve (not just abort) pending promises before clearing fields. RefactoredclearCacheto precompute removable matches and callcancelMatchfor pending/loading matches. Added result validation inpreloadRouteto ensure loaded matches still exist in router state.packages/router-core/tests/load.test.tsclearExpiredCache()during unresolved preload doesn't reject or error, another confirminginvalidate()during loader-driven preload succeeds without errors and properly removes cached matches.Estimated code review effort#
🎯 4 (Complex) | ⏱️ ~45 minutes
Poem#
🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)#
✅ Passed checks (2 passed)
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands and usage tips.