Skip to content

Commit fbf6940

Browse files
authored
doc: v3 tanstack-query docs (#502)
1 parent 38efdf7 commit fbf6940

File tree

21 files changed

+590
-41
lines changed

21 files changed

+590
-41
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@
2525
[submodule "code-repos/zenstackhq/v3-doc-server-adapter"]
2626
path = code-repos/zenstackhq/v3-doc-server-adapter
2727
url = https://github.com/zenstackhq/v3-doc-server-adapter
28+
[submodule "code-repos/zenstackhq/v3-doc-tanstack-query"]
29+
path = code-repos/zenstackhq/v3-doc-tanstack-query
30+
url = https://github.com/zenstackhq/v3-doc-tanstack-query
Submodule v3-doc-tanstack-query added at 00ced0d

docs/reference/plugins/swr.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_position: 5
55

66
import Invalidation from './_invalidation.md';
77
import OptimisticBehavior from './_optimistic-behavior.md';
8-
import OptmisticLimitation from './_optimistic-limitation.md';
8+
import OptimisticLimitation from './_optimistic-limitation.md';
99
import FineGrainedOptimistic from './_fine-grained-optimistic.md';
1010

1111
# @zenstackhq/swr
@@ -201,7 +201,7 @@ When `create` executes, if there are active queries like `useFindManyPost()`, th
201201

202202
#### Limitations
203203

204-
<OptmisticLimitation />
204+
<OptimisticLimitation />
205205

206206
#### Opt-out
207207

docs/reference/plugins/tanstack-query.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88
import Invalidation from './_invalidation.md';
99
import OptimisticBehavior from './_optimistic-behavior.md';
10-
import OptmisticLimitation from './_optimistic-limitation.md';
10+
import OptimisticLimitation from './_optimistic-limitation.md';
1111
import FineGrainedOptimistic from './_fine-grained-optimistic.md';
1212

1313
# @zenstackhq/tanstack-query
@@ -662,7 +662,7 @@ When `mutate` executes, if there are active queries like `useFindManyPost()`, th
662662
663663
#### Limitations
664664
665-
<OptmisticLimitation />
665+
<OptimisticLimitation />
666666
667667
#### Opt-out
668668

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const config = {
234234
prism: {
235235
theme: prismThemes.github,
236236
darkTheme: prismThemes.dracula,
237-
additionalLanguages: ['json'],
237+
additionalLanguages: ['json', 'tsx'],
238238
},
239239

240240
zoom: {

pnpm-lock.yaml

Lines changed: 10 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/GithubCodeBlock.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const GithubCodeBlock: React.FC<GithubCodeBlockProps> = ({ repoPath, file }) =>
1111
const getLanguage = (file: string): string => {
1212
if (file.endsWith('.ts')) {
1313
return 'typescript';
14+
} else if (file.endsWith('.tsx')) {
15+
return 'tsx';
1416
} else if (file.endsWith('.zmodel')) {
1517
return 'zmodel';
1618
} else {

tsconfig.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
// This file is not used in compilation. It is here just for a nice editor experience.
3-
"extends": "@tsconfig/docusaurus/tsconfig.json",
4-
"compilerOptions": {
5-
"baseUrl": "."
6-
}
2+
// This file is not used in compilation. It is here just for a nice editor experience.
3+
"extends": "@tsconfig/docusaurus/tsconfig.json",
4+
"compilerOptions": {
5+
"baseUrl": "."
6+
}
77
}

versioned_docs/version-1.x/reference/plugins/swr.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_position: 5
55

66
import Invalidation from './_invalidation.md';
77
import OptimisticBehavior from './_optimistic-behavior.md';
8-
import OptmisticLimitation from './_optimistic-limitation.md';
8+
import OptimisticLimitation from './_optimistic-limitation.md';
99

1010
# @zenstackhq/swr
1111

@@ -170,7 +170,7 @@ When `create` executes, if there are active queries like `useFindManyPost()`, th
170170

171171
#### Limitations
172172

173-
<OptmisticLimitation />
173+
<OptimisticLimitation />
174174

175175
#### Opt-out
176176

versioned_docs/version-1.x/reference/plugins/tanstack-query.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88
import Invalidation from './_invalidation.md';
99
import OptimisticBehavior from './_optimistic-behavior.md';
10-
import OptmisticLimitation from './_optimistic-limitation.md';
10+
import OptimisticLimitation from './_optimistic-limitation.md';
1111

1212
# @zenstackhq/tanstack-query
1313

@@ -430,7 +430,7 @@ When `mutate` executes, if there are active queries like `useFindManyPost()`, th
430430
431431
#### Limitations
432432
433-
<OptmisticLimitation />
433+
<OptimisticLimitation />
434434
435435
#### Opt-out
436436

0 commit comments

Comments
 (0)