ta
TanStack
OSS
ta
Pipelines
Nx runs
Insights
Compare tasks
Analytics
Sign in
Toggle Sidebar
qu
query
Pipelines
fix(solid-query): scope useMutation's cache subscription to the flight The hook subscribed to the mutation cache at mount with a bare reactive client() read — tripping Solid's STRICT_READ_UNTRACKED dev diagnostic (reported by @brenelz in #11324) — and held that subscription for its whole life even though the listener only matters between mutate and settle. Rather than untracking the read, remove it: subscribe inside run(), against the same client the mutation is built on, and unsubscribe at the settle points (plus onCleanup for unmount mid-flight). By construction: no reactive read at setup (nothing to untrack), the listener and the mutation can never sit on different clients across a QueryClient swap, and an idle useMutation holds no cache subscription — mutation-cache events no longer fan out to every mounted hook. Includes the #11324 regression test (no strict-read diagnostic on mount) plus a listener-count test pinning the idle/flight/settled subscription lifecycle. Co-authored-by: Cursor <cursoragent@cursor.com>
nx affected --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build
⌘K
fix(solid-query): scope useMutation's cache subscription to the flight
Succeeded
in
4m 25s
Started
Copy command
nx affected --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:types,test:build,build
11325
ce94c01
GitHub
Open on GitHub
Tasks
Resource Usage
ta
TanStack
OSS