Skip to content
Source
Sign inSign up
TanStack/query

Angular v19+ pending tasks and lazy derived signal proxy initialization #9986

Closedbenjavicente(GitHub profile, opens in a new tab)wants to merge 29 commits intomain fromrefs/pull/9986/headopened View on GitHub

Showing 86 changed files with 18 additions and 5 deletions (loading 82).

x
0 of 86 viewed, 86 left
5 additions and 0 deletions.changeset/deep-crews-open.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/angular-query-experimental': minor
+---
+​
+require Angular v19+ and use Angular component effect scheduling
1 addition and 1 deletiondocs/framework/angular/guides/caching.mdModified
View file
@@ -27,7 +27,7 @@
- When the request completes successfully, the cache's data under the `['todos']` key is updated with the new data, and both instances are updated with the new data.
- Both instances of the `injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodos })` query are destroyed and no longer in use.
- Since there are no more active instances of this query, a garbage collection timeout is set using `gcTime` to delete and garbage collect the query (defaults to **5 minutes**).
-- Before the cache timeout has completed, another instance of `injectQuery(() => ({ queryKey: ['todos'], queyFn: fetchTodos })` mounts. The query immediately returns the available cached data while the `fetchTodos` function is being run in the background. When it completes successfully, it will populate the cache with fresh data.
+- Before the cache timeout has completed, another instance of `injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodos })` mounts. The query immediately returns the available cached data while the `fetchTodos` function is being run in the background. When it completes successfully, it will populate the cache with fresh data.
- The final instance of `injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodos })` gets destroyed.
- No more instances of `injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodos })` appear within **5 minutes**.
- The cached data under the `['todos']` key is deleted and garbage collected.
12 additions and 4 deletionsdocs/framework/angular/guides/default-query-function.mdModified
View file
@@ -28,7 +28,10 @@
providers: [provideTanStackQuery(queryClient)],