Skip to content

Commit 8b4e125

Browse files
authored
Merge branch 'main' into ci/sherif-ingnore-package
2 parents 8f8c47f + 9c561b2 commit 8b4e125

File tree

85 files changed

+297
-677
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+297
-677
lines changed

docs/config.json

Lines changed: 82 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,70 @@
55
"apiKey": "35bc6c51aa322700d1383e17c4f669f4",
66
"indexName": "tanstackquery"
77
},
8-
"menu": [],
8+
"menu": [
9+
{
10+
"label": "API Reference",
11+
"children": [
12+
{
13+
"label": "QueryClient",
14+
"to": "reference/QueryClient"
15+
},
16+
{
17+
"label": "QueryCache",
18+
"to": "reference/QueryCache"
19+
},
20+
{
21+
"label": "MutationCache",
22+
"to": "reference/MutationCache"
23+
},
24+
{
25+
"label": "QueryObserver",
26+
"to": "reference/QueryObserver"
27+
},
28+
{
29+
"label": "InfiniteQueryObserver",
30+
"to": "reference/InfiniteQueryObserver"
31+
},
32+
{
33+
"label": "QueriesObserver",
34+
"to": "reference/QueriesObserver"
35+
},
36+
{
37+
"label": "focusManager",
38+
"to": "reference/focusManager"
39+
},
40+
{
41+
"label": "onlineManager",
42+
"to": "reference/onlineManager"
43+
},
44+
{
45+
"label": "notifyManager",
46+
"to": "reference/notifyManager"
47+
}
48+
]
49+
},
50+
{
51+
"label": "ESLint",
52+
"children": [
53+
{
54+
"label": "ESLint Plugin Query",
55+
"to": "eslint/eslint-plugin-query"
56+
},
57+
{
58+
"label": "Exhaustive Deps",
59+
"to": "eslint/exhaustive-deps"
60+
},
61+
{
62+
"label": "Stable Query Client",
63+
"to": "eslint/stable-query-client"
64+
},
65+
{
66+
"label": "No Rest Destructuring",
67+
"to": "eslint/no-rest-destructuring"
68+
}
69+
]
70+
}
71+
],
972
"frameworkMenus": [
1073
{
1174
"framework": "react",
@@ -302,27 +365,6 @@
302365
}
303366
]
304367
},
305-
{
306-
"label": "ESLint",
307-
"children": [
308-
{
309-
"label": "ESLint Plugin Query",
310-
"to": "framework/react/eslint/eslint-plugin-query"
311-
},
312-
{
313-
"label": "Exhaustive Deps",
314-
"to": "framework/react/eslint/exhaustive-deps"
315-
},
316-
{
317-
"label": "Stable Query Client",
318-
"to": "framework/react/eslint/stable-query-client"
319-
},
320-
{
321-
"label": "No Rest Destructuring",
322-
"to": "framework/react/eslint/no-rest-destructuring"
323-
}
324-
]
325-
},
326368
{
327369
"label": "Plugins",
328370
"children": [
@@ -391,10 +433,7 @@
391433
"label": "useSuspenseQueries",
392434
"to": "framework/react/reference/useSuspenseQueries"
393435
},
394-
{
395-
"label": "QueryClient",
396-
"to": "framework/react/reference/QueryClient"
397-
},
436+
398437
{
399438
"label": "QueryClientProvider",
400439
"to": "framework/react/reference/QueryClientProvider"
@@ -411,26 +450,6 @@
411450
"label": "infiniteQueryOptions",
412451
"to": "framework/react/reference/infiniteQueryOptions"
413452
},
414-
{
415-
"label": "QueryCache",
416-
"to": "framework/react/reference/QueryCache"
417-
},
418-
{
419-
"label": "MutationCache",
420-
"to": "framework/react/reference/MutationCache"
421-
},
422-
{
423-
"label": "QueryObserver",
424-
"to": "framework/react/reference/QueryObserver"
425-
},
426-
{
427-
"label": "InfiniteQueryObserver",
428-
"to": "framework/react/reference/InfiniteQueryObserver"
429-
},
430-
{
431-
"label": "QueriesObserver",
432-
"to": "framework/react/reference/QueriesObserver"
433-
},
434453
{
435454
"label": "QueryErrorResetBoundary",
436455
"to": "framework/react/reference/QueryErrorResetBoundary"
@@ -439,18 +458,6 @@
439458
"label": "useQueryErrorResetBoundary",
440459
"to": "framework/react/reference/useQueryErrorResetBoundary"
441460
},
442-
{
443-
"label": "focusManager",
444-
"to": "framework/react/reference/focusManager"
445-
},
446-
{
447-
"label": "onlineManager",
448-
"to": "framework/react/reference/onlineManager"
449-
},
450-
{
451-
"label": "notifyManager",
452-
"to": "framework/react/reference/notifyManager"
453-
},
454461
{
455462
"label": "hydration",
456463
"to": "framework/react/reference/hydration"
@@ -732,42 +739,6 @@
732739
"label": "useQueryClient",
733740
"to": "framework/vue/reference/useQueryClient"
734741
},
735-
{
736-
"label": "QueryClient",
737-
"to": "framework/vue/reference/QueryClient"
738-
},
739-
{
740-
"label": "QueryCache",
741-
"to": "framework/vue/reference/QueryCache"
742-
},
743-
{
744-
"label": "MutationCache",
745-
"to": "framework/vue/reference/MutationCache"
746-
},
747-
{
748-
"label": "QueryObserver",
749-
"to": "framework/vue/reference/QueryObserver"
750-
},
751-
{
752-
"label": "InfiniteQueryObserver",
753-
"to": "framework/vue/reference/InfiniteQueryObserver"
754-
},
755-
{
756-
"label": "QueriesObserver",
757-
"to": "framework/vue/reference/QueriesObserver"
758-
},
759-
{
760-
"label": "focusManager",
761-
"to": "framework/vue/reference/focusManager"
762-
},
763-
{
764-
"label": "notifyManager",
765-
"to": "framework/vue/reference/notifyManager"
766-
},
767-
{
768-
"label": "onlineManager",
769-
"to": "framework/vue/reference/onlineManager"
770-
},
771742
{
772743
"label": "hydration",
773744
"to": "framework/vue/reference/hydration"
@@ -967,6 +938,23 @@
967938
"to": "framework/angular/guides/does-this-replace-client-state"
968939
}
969940
]
941+
},
942+
{
943+
"label": "Examples",
944+
"children": [
945+
{
946+
"label": "Simple",
947+
"to": "framework/angular/examples/simple"
948+
},
949+
{
950+
"label": "Basic",
951+
"to": "framework/angular/examples/basic"
952+
},
953+
{
954+
"label": "Default Query Function",
955+
"to": "framework/angular/examples/default-query-function"
956+
}
957+
]
970958
}
971959
]
972960
}

docs/framework/angular/guides/caching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: caching
33
title: Caching Examples
44
---
55

6-
> Please thoroughly read the [Important Defaults](../guides/important-defaults) before reading this guide
6+
> Please thoroughly read the [Important Defaults](./guides/important-defaults) before reading this guide
77
88
## Basic Example
99

@@ -23,7 +23,7 @@ Let's assume we are using the default `gcTime` of **5 minutes** and the default
2323
- A second instance of `injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodos })` initializes elsewhere.
2424
- Since the cache already has data for the `['todos']` key from the first query, that data is immediately returned from the cache.
2525
- The new instance triggers a new network request using its query function.
26-
- Note that regardless of whether both `fetchTodos` query functions are identical or not, both queries' [`status`](../reference/injectQuery) are updated (including `isFetching`, `isPending`, and other related values) because they have the same query key.
26+
- Note that regardless of whether both `fetchTodos` query functions are identical or not, both queries' [`status`](./reference/injectQuery) are updated (including `isFetching`, `isPending`, and other related values) because they have the same query key.
2727
- 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.
2828
- Both instances of the `injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodos })` query are destroyed and no longer in use.
2929
- 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**).

docs/framework/angular/guides/invalidations-from-mutations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ export class TodosComponent {
4040

4141
[//]: # 'Example2'
4242

43-
You can wire up your invalidations to happen using any of the callbacks available in the [`injectMutation` function](../guides/mutations)
43+
You can wire up your invalidations to happen using any of the callbacks available in the [`injectMutation` function](./guides/mutations)

docs/framework/angular/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ $ pnpm add @tanstack/angular-query-experimental
1717
$ yarn add @tanstack/angular-query-experimental
1818
```
1919

20-
> Wanna give it a spin before you download? Try out the [simple](../examples/angular/simple) or [basic](../examples/angular/basic) examples!
20+
> Wanna give it a spin before you download? Try out the [simple](./examples/simple) or [basic](./examples/basic) examples!

docs/framework/angular/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ type Response = {
114114
115115
## You talked me into it, so what now?
116116
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/injectQuery)

docs/framework/angular/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Quick Start
77
88
[//]: # 'Example'
99

10-
If you're looking for a fully functioning example, please have a look at our [basic codesandbox example](../examples/angular/basic)
10+
If you're looking for a fully functioning example, please have a look at our [basic codesandbox example](./examples/basic)
1111

1212
### Provide the client to your App
1313

0 commit comments

Comments
 (0)