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)
- Use this to predefine some errors that can be triggered on your queries. Initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error.
88
+
-`styleNonce?: string`
89
+
- Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
90
+
-`shadowDOMTarget?: ShadowRoot`
91
+
- Default behavior will apply the devtool's styles to the head tag within the DOM.
92
+
- Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM.
93
+
94
+
## Embedded Mode
95
+
96
+
Embedded mode will show the development tools as a fixed element in your application, so you can use our panel in your own development tools.
97
+
98
+
Place the following code as high in your React app as you can. The closer it is to the root of the page, the better it will work!
- Use this to predefine some errors that can be triggered on your queries. Initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error.
88
131
-`styleNonce?: string`
89
132
- Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
Copy file name to clipboardExpand all lines: docs/framework/react/reference/useSuspenseQueries.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ Same structure as [useQueries](../useQueries), except that for each `query`:
25
25
-`status` is always `success`
26
26
- the derived flags are set accordingly.
27
27
28
-
**Caveat**
28
+
**Caveats**
29
29
30
30
Keep in mind that the component will only re-mount after **all queries** have finished loading. Hence, if a query has gone stale in the time it took for all the queries to complete, it will be fetched again at re-mount. To avoid this, make sure to set a high enough `staleTime`.
31
+
32
+
[Cancelation](../guides/query-cancellation.md) does not work.
0 commit comments