Skip to content

fix: upgrade TanStack Store to latest#7824

Open
crutchcorn wants to merge 2 commits into
mainfrom
upgrade-store
Open

fix: upgrade TanStack Store to latest#7824
crutchcorn wants to merge 2 commits into
mainfrom
upgrade-store

Conversation

@crutchcorn

@crutchcorn crutchcorn commented Jul 15, 2026

Copy link
Copy Markdown
Member

This PR upgrades TanStack Store to the latest version.

Something worth note before merging is that we may want to consider documenting a shift away from useStore and towards useSelector, as upstream Store has marked useStore as deprecated.

Summary by CodeRabbit

  • Bug Fixes

    • Improved router state subscriptions and update comparisons across React and Vue integrations.
    • Prevented potential outlet subscription issues when no parent match is available.
    • Preserved selected values during no-op updates to reduce unnecessary rerenders.
  • Tests

    • Added coverage for Vue subscription cleanup and comparison behavior.

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

TanStack Store dependencies are upgraded, React Router store reads migrate to useSelector, and Vue Router gains a lifecycle-aware local selector hook. Vue Router call sites and selector comparison options are updated, with tests covering cleanup and comparison behavior.

Changes

Store selector migration

Layer / File(s) Summary
React Router selector migration and match fallback
packages/react-router/..., packages/router-core/package.json, packages/router-devtools-core/...
React Router replaces useStore with useSelector, preserves selector comparisons, and supplies an empty store fallback for parentless Outlets.
Vue selector lifecycle hook
packages/vue-router/src/useSelector.ts, packages/vue-router/tests/useSelector.test.tsx, packages/vue-router/package.json
Vue Router adds lifecycle-aware selector handling, upgrades its store dependency, and tests unsubscription and comparator behavior.
Vue Router selector call sites
packages/vue-router/src/...
Vue Router components and hooks use the local useSelector implementation, including updated compare options.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Suggested reviewers: sheraff

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: upgrading TanStack Store and related usage updates to the latest API.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch upgrade-store

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.

@nx-cloud

nx-cloud Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit f62402e

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ✅ Succeeded 16m 41s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 1m 39s View ↗

☁️ Nx Cloud last updated this comment at 2026-07-15 11:34:09 UTC

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

No changeset entries found. Merging this PR will not cause a version bump for any packages.

@socket-security

socket-security Bot commented Jul 15, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​tanstack/​vue-store@​0.9.3 ⏵ 0.11.097 +110068 +286 -1100
Updated@​tanstack/​react-store@​0.9.3 ⏵ 0.11.010010069 +389 +1100
Updated@​tanstack/​store@​0.9.3 ⏵ 0.11.01001007188 +1100

View full report

@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Benchmarks

  • Commit: 68423066c308
  • Measured at: 2026-07-15T11:18:28.748Z
  • Baseline source: history:0b178a79e2e8
  • Dashboard: bundle-size history
Scenario Current (gzip) Delta vs baseline Initial gzip Raw Brotli Trend
react-router.minimal 87.39 KiB +45 B (+0.05%) 87.25 KiB 274.10 KiB 75.96 KiB ▁▆▆▆▆▆▆▃▃▃▃█
react-router.full 91.09 KiB +32 B (+0.03%) 90.96 KiB 286.08 KiB 79.22 KiB ▁██████▁▁▁▁▆
solid-router.minimal 35.53 KiB 0 B (0.00%) 35.40 KiB 105.90 KiB 31.94 KiB ▁██████▁▁▁▁
solid-router.full 40.58 KiB 0 B (0.00%) 40.46 KiB 121.11 KiB 36.51 KiB ▁██████▁▁▁▁
vue-router.minimal 52.87 KiB -130 B (-0.24%) 52.74 KiB 149.80 KiB 47.56 KiB ▆██████▆▆▆▆▁
vue-router.full 58.79 KiB -145 B (-0.24%) 58.67 KiB 168.55 KiB 52.73 KiB ▇██████▅▅▅▅▁
react-start.minimal 102.03 KiB +45 B (+0.04%) 101.89 KiB 322.62 KiB 88.35 KiB ▁▇▇▇▇▇▇▁▁▁▁█
react-start.deferred-hydration 102.77 KiB +46 B (+0.04%) 101.92 KiB 323.99 KiB 88.95 KiB ▁▇▇▇▇▇▇▁▁▁▁█
react-start.full 105.42 KiB +59 B (+0.05%) 105.28 KiB 332.54 KiB 91.19 KiB ▄██████▁▁▁▁▆
react-start.rsbuild.minimal 99.74 KiB +64 B (+0.06%) 99.57 KiB 317.04 KiB 85.90 KiB ▃██████▁▁▁▁█
react-start.rsbuild.minimal-iife 100.14 KiB +62 B (+0.06%) 99.97 KiB 317.98 KiB 86.16 KiB ▃██████▁▁▁▁▇
react-start.rsbuild.full 102.94 KiB +50 B (+0.05%) 102.77 KiB 327.09 KiB 88.56 KiB ▃██████▁▁▁▁▆
solid-start.minimal 49.61 KiB 0 B (0.00%) 49.48 KiB 152.07 KiB 43.83 KiB ▅██████▁▁▁▁
solid-start.deferred-hydration 52.87 KiB 0 B (0.00%) 49.53 KiB 160.11 KiB 46.89 KiB ▅██████▁▁▁▁
solid-start.full 55.42 KiB 0 B (0.00%) 55.29 KiB 169.12 KiB 48.90 KiB ▆██████▁▁▁▁
vue-start.minimal 70.93 KiB -103 B (-0.14%) 70.80 KiB 207.05 KiB 62.82 KiB ▇██████▄▄▄▄▁
vue-start.full 74.93 KiB -108 B (-0.14%) 74.80 KiB 219.69 KiB 66.32 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.

@pkg-pr-new

pkg-pr-new Bot commented Jul 15, 2026

Copy link
Copy Markdown
More templates

@tanstack/arktype-adapter

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

@tanstack/eslint-plugin-router

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

@tanstack/eslint-plugin-start

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

@tanstack/history

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

@tanstack/nitro-v2-vite-plugin

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

@tanstack/react-router

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

@tanstack/react-router-devtools

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

@tanstack/react-router-ssr-query

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

@tanstack/react-start

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

@tanstack/react-start-client

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

@tanstack/react-start-rsc

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

@tanstack/react-start-server

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

@tanstack/router-cli

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

@tanstack/router-core

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

@tanstack/router-devtools

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

@tanstack/router-devtools-core

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

@tanstack/router-generator

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

@tanstack/router-plugin

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

@tanstack/router-ssr-query-core

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

@tanstack/router-utils

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

@tanstack/router-vite-plugin

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

@tanstack/solid-router

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

@tanstack/solid-router-devtools

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

@tanstack/solid-router-ssr-query

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

@tanstack/solid-start

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

@tanstack/solid-start-client

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

@tanstack/solid-start-server

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

@tanstack/start-client-core

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

@tanstack/start-fn-stubs

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

@tanstack/start-plugin-core

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

@tanstack/start-server-core

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

@tanstack/start-static-server-functions

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

@tanstack/start-storage-context

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

@tanstack/valibot-adapter

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

@tanstack/virtual-file-routes

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

@tanstack/vue-router

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

@tanstack/vue-router-devtools

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

@tanstack/vue-router-ssr-query

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

@tanstack/vue-start

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

@tanstack/vue-start-client

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

@tanstack/vue-start-server

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

@tanstack/zod-adapter

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

commit: f62402e

@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-router/package.json (1)

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

Plan the useStore migration with this bump. packages/react-router/src still uses useStore in many places, and @tanstack/react-store 0.11.x deprecates it in favor of useSelector.

🤖 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-router/package.json` at line 96, Plan and begin migrating the
useStore calls throughout packages/react-router/src to the useSelector API
required by `@tanstack/react-store` 0.11.x, updating each affected component or
hook while preserving existing selected state and subscription behavior.
🤖 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-router/package.json`:
- Line 96: Plan and begin migrating the useStore calls throughout
packages/react-router/src to the useSelector API required by
`@tanstack/react-store` 0.11.x, updating each affected component or hook while
preserving existing selected state and subscription behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1052d019-c40d-499f-a83f-e5c4f94c4699

📥 Commits

Reviewing files that changed from the base of the PR and between 0b178a7 and 8f6309b.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (16)
  • packages/react-router/package.json
  • packages/react-router/src/Match.tsx
  • packages/router-core/package.json
  • packages/vue-router/package.json
  • packages/vue-router/src/Match.tsx
  • packages/vue-router/src/Matches.tsx
  • packages/vue-router/src/Scripts.tsx
  • packages/vue-router/src/Transitioner.tsx
  • packages/vue-router/src/headContentUtils.tsx
  • packages/vue-router/src/link.tsx
  • packages/vue-router/src/not-found.tsx
  • packages/vue-router/src/useCanGoBack.ts
  • packages/vue-router/src/useLocation.tsx
  • packages/vue-router/src/useMatch.tsx
  • packages/vue-router/src/useRouterState.tsx
  • packages/vue-router/src/useStore.ts

@codspeed-hq

codspeed-hq Bot commented Jul 15, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 20.62%

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

⚡ 41 improved benchmarks
❌ 8 regressed benchmarks
✅ 131 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 not-found (solid) 422.4 KB 1,068.4 KB -60.47%
Memory mem server error-paths unmatched (react) 264.2 KB 364.9 KB -27.61%
Memory mem client preload-churn (vue) 666.7 KB 842.3 KB -20.85%
Memory mem server peak-large-page (solid) 771.4 KB 877.2 KB -12.06%
Memory mem server error-paths not-found (react) 267 KB 301 KB -11.29%
Simulation client-history navigation loop (react) 38.9 ms 41.5 ms -6.2%
Simulation client-route-tree-scale navigation loop (react) 74 ms 77.4 ms -4.44%
Simulation ssr dehydrate rich types (solid) 73.3 ms 75.7 ms -3.12%
Memory mem server server-fn-churn (solid) 3,825.7 KB 273.9 KB ×14
Memory mem client navigation-churn (vue) 985.9 KB 379 KB ×2.6
Memory mem server error-paths redirect (vue) 611.4 KB 308.9 KB +97.91%
Memory mem server server-fn-churn (vue) 3.9 MB 2.4 MB +65.39%
Memory mem client unique-location-churn (vue) 1,160.3 KB 736.3 KB +57.59%
Simulation client-links navigation loop (vue) 173.1 ms 122.4 ms +41.42%
Simulation ssr head (vue) 326.7 ms 236.4 ms +38.2%
Simulation client-side navigation loop (vue) 77.2 ms 56.8 ms +35.75%
Simulation client-head navigation loop (vue) 97.3 ms 74.3 ms +30.92%
Simulation ssr assets linked-css control (vue) 215.4 ms 165.3 ms +30.28%
Simulation ssr assets inline-css cdn (vue) 188.3 ms 145 ms +29.85%
Simulation ssr before-load chain (vue) 184.4 ms 142.7 ms +29.28%
... ... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

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


Comparing upgrade-store (f62402e) with main (0b178a7)

Open in CodSpeed

@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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/vue-router/src/useSelector.ts (1)

27-37: 🩺 Stability & Availability | 🔴 Critical | ⚡ Quick win

Memory leak when called inside functional components or render functions.

This fallback creates a new detached effectScope and registers an onUnmounted hook on the parent instance. While this correctly cleans up subscriptions for one-off calls outside of setup() (e.g., in onMounted), it creates a severe memory leak if useSelector is used inside a functional component (such as CatchNotFound in not-found.tsx shown in the graph context).

Because functional components and render functions execute on every component update, and Vue.getCurrentScope() is falsy during render, this fallback is triggered repeatedly. On every re-render, it creates a new store subscription and appends another onUnmounted hook to the parent component, neither of which are cleaned up until the parent unmounts.

Since Vue explicitly advises against using stateful composition API hooks in functional components, consider documenting that useSelector must be used strictly within setup(), and convert existing functional components like CatchNotFound to stateful components using Vue.defineComponent(() => { ... }).

🤖 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/vue-router/src/useSelector.ts` around lines 27 - 37, Prevent
repeated render-time subscriptions by documenting that useSelector must only be
called within setup(), not functional components or render functions. Convert
functional consumers such as CatchNotFound to stateful components using
Vue.defineComponent with setup-based usage, while preserving existing one-off
calls outside setup that rely on the scoped cleanup.
🤖 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 `@packages/vue-router/tests/useSelector.test.tsx`:
- Around line 32-37: Rewrite the test’s functional Component as a stateful
component using Vue.defineComponent with a setup function that calls useSelector
once. Exercise a re-render before unmounting, then verify the subscription is
cleaned up without creating additional subscriptions; keep the existing cleanup
assertion and store setup intact.

---

Outside diff comments:
In `@packages/vue-router/src/useSelector.ts`:
- Around line 27-37: Prevent repeated render-time subscriptions by documenting
that useSelector must only be called within setup(), not functional components
or render functions. Convert functional consumers such as CatchNotFound to
stateful components using Vue.defineComponent with setup-based usage, while
preserving existing one-off calls outside setup that rely on the scoped cleanup.
🪄 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: 2c335bdb-870b-4164-a649-bc9b5c1a9669

📥 Commits

Reviewing files that changed from the base of the PR and between 8f6309b and f62402e.

📒 Files selected for processing (25)
  • packages/react-router/src/Match.tsx
  • packages/react-router/src/Matches.tsx
  • packages/react-router/src/Scripts.tsx
  • packages/react-router/src/Transitioner.tsx
  • packages/react-router/src/headContentUtils.tsx
  • packages/react-router/src/link.tsx
  • packages/react-router/src/not-found.tsx
  • packages/react-router/src/useCanGoBack.ts
  • packages/react-router/src/useLocation.tsx
  • packages/react-router/src/useMatch.tsx
  • packages/react-router/src/useRouterState.tsx
  • packages/router-devtools-core/src/BaseTanStackRouterDevtoolsPanel.tsx
  • packages/vue-router/src/Match.tsx
  • packages/vue-router/src/Matches.tsx
  • packages/vue-router/src/Scripts.tsx
  • packages/vue-router/src/Transitioner.tsx
  • packages/vue-router/src/headContentUtils.tsx
  • packages/vue-router/src/link.tsx
  • packages/vue-router/src/not-found.tsx
  • packages/vue-router/src/useCanGoBack.ts
  • packages/vue-router/src/useLocation.tsx
  • packages/vue-router/src/useMatch.tsx
  • packages/vue-router/src/useRouterState.tsx
  • packages/vue-router/src/useSelector.ts
  • packages/vue-router/tests/useSelector.test.tsx
🚧 Files skipped from review as they are similar to previous changes (4)
  • packages/vue-router/src/useLocation.tsx
  • packages/vue-router/src/Scripts.tsx
  • packages/vue-router/src/Transitioner.tsx
  • packages/react-router/src/Match.tsx

Comment on lines +32 to +37
it('cleans up a functional component subscription on unmount', () => {
const { store, unsubscribe } = createStore({ count: 0 })
const Component = () => {
const count = useSelector(store, (state) => state.count)
return <div>{count.value}</div>
}

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.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Test masks a memory leak for functional components.

This test verifies a single mount and unmount of a functional component. However, functional components re-run their entire function body on every render. If Component were to re-render (e.g., by reacting to props or parent state), useSelector would execute again.

As there is no active effect scope during render, useSelector falls back to creating a new detached effectScope and adding an onUnmounted listener to the wrapper instance on every render, causing a memory leak.

Stateful composition APIs should not be used in functional components. Consider rewriting this test using a stateful component (Vue.defineComponent(() => { ... })) to promote correct usage patterns, and verify that re-renders do not leak subscriptions.

♻️ Proposed fix to use a stateful component
-  it('cleans up a functional component subscription on unmount', () => {
+  it('cleans up a stateful component subscription on unmount', () => {
     const { store, unsubscribe } = createStore({ count: 0 })
-    const Component = () => {
+    const Component = Vue.defineComponent(() => {
       const count = useSelector(store, (state) => state.count)
-      return <div>{count.value}</div>
-    }
+      return () => <div>{count.value}</div>
+    })
 
     const view = render(Component)
📝 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 change
it('cleans up a functional component subscription on unmount', () => {
const { store, unsubscribe } = createStore({ count: 0 })
const Component = () => {
const count = useSelector(store, (state) => state.count)
return <div>{count.value}</div>
}
it('cleans up a stateful component subscription on unmount', () => {
const { store, unsubscribe } = createStore({ count: 0 })
const Component = Vue.defineComponent(() => {
const count = useSelector(store, (state) => state.count)
return () => <div>{count.value}</div>
})
🤖 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/vue-router/tests/useSelector.test.tsx` around lines 32 - 37, Rewrite
the test’s functional Component as a stateful component using
Vue.defineComponent with a setup function that calls useSelector once. Exercise
a re-render before unmounting, then verify the subscription is cleaned up
without creating additional subscriptions; keep the existing cleanup assertion
and store setup intact.

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.

1 participant