@servicetitan/docs-anvil-uikit-contrib 29.3.2 → 30.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/table.mdx +1 -1
- package/docs/tanstack-query-mobx.mdx +36 -0
- package/package.json +2 -2
package/docs/table.mdx
CHANGED
|
@@ -244,7 +244,7 @@ import { FC } from 'react';
|
|
|
244
244
|
import { TableCellProps } from '@servicetitan/table';
|
|
245
245
|
|
|
246
246
|
const CustomCell: FC<TableCellProps> = ({ tdProps }) => {
|
|
247
|
-
return <td {...
|
|
247
|
+
return <td {...tdProps}>I'm a custom cell!</td>;
|
|
248
248
|
};
|
|
249
249
|
```
|
|
250
250
|
|
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
title: TanStack Query MobX Integration
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
+
import {
|
|
6
|
+
AppExample, HasInitialDataExample, NoInitialDataExample, PageExample, StaleTime0Example, StaleTime10MinutesExample
|
|
7
|
+
} from '@servicetitan/tanstack-query-mobx/dist/demo';
|
|
8
|
+
|
|
9
|
+
import { CodeDemo } from '@site/src/components/code-demo';
|
|
10
|
+
|
|
5
11
|
`@servicetitan/tanstack-query-mobx` contains integrations for using TanStack Query inside MobX stores.
|
|
6
12
|
|
|
7
13
|
Documentation for setup and use can be seen [here](https://docs.google.com/document/d/1MfFMtwF4Rb3rj076GWJSgNiA9PtfVThlZBNK4frZHrs/edit?usp=drive_link)
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
### App QueryClient
|
|
18
|
+
|
|
19
|
+
<CodeDemo example={AppExample} srcPath="tanstack-query-mobx/src/demo/app-example.tsx" />
|
|
20
|
+
|
|
21
|
+
### Page QueryClient
|
|
22
|
+
|
|
23
|
+
<CodeDemo example={PageExample} srcPath="tanstack-query-mobx/src/demo/page-example.tsx" />
|
|
24
|
+
|
|
25
|
+
### Initial Data
|
|
26
|
+
|
|
27
|
+
#### No Initial Data
|
|
28
|
+
|
|
29
|
+
<CodeDemo example={NoInitialDataExample} srcPath="tanstack-query-mobx/src/demo/no-initial-data-example.tsx" />
|
|
30
|
+
|
|
31
|
+
#### Has Initial Data
|
|
32
|
+
|
|
33
|
+
<CodeDemo example={HasInitialDataExample} srcPath="tanstack-query-mobx/src/demo/has-initial-data-example.tsx" />
|
|
34
|
+
|
|
35
|
+
### Stale Time
|
|
36
|
+
|
|
37
|
+
#### Stale Time: 0
|
|
38
|
+
|
|
39
|
+
<CodeDemo example={StaleTime0Example} srcPath="tanstack-query-mobx/src/demo/stale-time-0-example.tsx" />
|
|
40
|
+
|
|
41
|
+
#### Stale Time: 10 Minutes
|
|
42
|
+
|
|
43
|
+
<CodeDemo example={StaleTime10MinutesExample} srcPath="tanstack-query-mobx/src/demo/stale-time-10-minutes-example.tsx" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/docs-anvil-uikit-contrib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"cli": {
|
|
17
17
|
"webpack": false
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "c7ba135687a7ca3afac48032f57af9bd7e788da9"
|
|
20
20
|
}
|