Skip to content
Source
Sign inSign up
TanStack/query

fix(query-core): clear GC timers for removed cache entries #12562

Closedrvitaliy(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/12562/headopened View on GitHub

Showing 6 changed files with 5 additions and 0 deletions (loading 5).

x
0 of 6 viewed, 6 left
5 additions and 0 deletions.changeset/large-dancers-give.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/query-core': patch
+---
+​
+Release garbage collection timers when cache entries are removed, and avoid scheduling new timers for removed queries or mutations after cancellation or observer cleanup. Pending mutations continue to execute normally.
packages/query-core/src/__tests__/cacheGc.test.tsxAdded
View file
Loading the diff
packages/query-core/src/__tests__/mutationCache.test-d.tsxModified
View file
Loading the diff