You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/framework/angular/overview.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Most core web frameworks **do not** come with an opinionated way of fetching or
23
23
24
24
While most traditional state management libraries are great for working with client state, they are **not so great at working with async or server state**. This is because **server state is totally different**. For starters, server state:
25
25
26
-
- Is persisted remotely in a location you do not control or own
26
+
- Is persisted remotely in a location you may not control or own
27
27
- Requires asynchronous APIs for fetching and updating
28
28
- Implies shared ownership and can be changed by other people without your knowledge
29
29
- Can potentially become "out of date" in your applications if you're not careful
@@ -58,7 +58,7 @@ On a more technical note, Angular Query will likely:
58
58
59
59
In the example below, you can see Angular Query in its most basic and simple form being used to fetch the GitHub stats for the TanStack Query GitHub project itself:
60
60
61
-
[Open in CodeSandbox](https://codesandbox.io/s/github/tanstack/query/tree/main/examples/angular/simple)
61
+
[Open in StackBlitz](https://stackblitz.com/github/TanStack/query/tree/main/examples/angular/simple)
62
62
63
63
```angular-ts
64
64
import { AngularQueryDevtools } from '@tanstack/angular-query-devtools-experimental'
@@ -114,4 +114,4 @@ type Response = {
114
114
115
115
## You talked me into it, so what now?
116
116
117
-
- Learn Angular Query at your own pace with our amazingly thorough [Walkthrough Guide](../installation) and [API Reference](../reference/injectQuery)
117
+
- Learn Angular Query at your own pace with our amazingly thorough [Walkthrough Guide](../installation) and [API Reference](../reference/functions/injectquery)
Copy file name to clipboardExpand all lines: packages/angular-query-experimental/README.md
+84-66
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
# Angular Query
9
9
10
-
> IMPORTANT: This library is currently in an experimental stage. This means that breaking changes will happen in minor AND patch releases. Upgrade carefully. If you use this in production while in experimental stage, please lock your version to a patch-level version to avoid unexpected breaking changes.
10
+
> IMPORTANT: This library is currently in an experimental stage. This means that breaking changes may happen in minor AND patch releases. Upgrade carefully. If you use this in production while in experimental stage, please lock your version to a patch-level version to avoid unexpected breaking changes.
11
11
12
12
Functions for fetching, caching and updating asynchronous data in Angular
info =injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodoList }))
95
+
}
96
+
```
97
+
98
+
4. If you need to update options on your query dynamically, make sure to pass them as signals. The query will refetch automatically if data for an updated query key is stale or not present.
99
+
100
+
[Open in StackBlitz](https://stackblitz.com/github/TanStack/query/tree/main/examples/angular/router)
0 commit comments