File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ The function responsible to create the query client
11
11
Definition:
12
12
13
13
``` rescript
14
- module Provider = {
15
- let createClient: unit => queryClientValue
16
- }
14
+ module Provider = {
15
+ let createClient: unit => queryClientValue
16
+ }
17
17
```
18
18
Usage:
19
19
``` rescript
20
- let client = ReactQuery.Provider.createClient()
20
+ let client = ReactQuery.Provider.createClient()
21
21
```
22
22
23
23
### ` ReactQuery.Provider.make() `
@@ -27,11 +27,17 @@ The React Context Provider responsible to hold all the react-query context
27
27
Definition:
28
28
29
29
``` rescript
30
- module Provider = {
31
- let mak
9B70
e: (
32
- ~client: queryClientValue,
33
- ~contextSharing: bool,
34
- ~children: React.element
35
- ) => React.element
36
- }
30
+ module Provider = {
31
+ let make: (
32
+ ~client: queryClientValue,
33
+ ~contextSharing: bool,
34
+ ~children: React.element
35
+ ) => React.element
36
+ }
37
+ ```
38
+
39
+ Usage:
40
+
41
+ ``` rescript
42
+ <ReactQuery.Provider client={client}>children</ReactQuery.Provider>
37
43
```
You can’t perform that action at this time.
0 commit comments