File tree Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change 1
1
# API Reference
2
2
---
3
- - [ ` ReactQuery.Provider.createClient(...) ` ] ( #reactqueryprovidercreateclient )
3
+ - [ ` ReactQuery.Provider.createClient() ` ] ( #reactqueryprovidercreateclient )
4
+ - [ ` ReactQuery.Provider.make() ` ] ( #reactqueryprovidermake )
4
5
5
6
6
- ### ` ReactQuery.Provider.createClient(... ) `
7
+ ### ` ReactQuery.Provider.createClient() `
7
8
8
9
The function responsible to create the query client
10
+
11
+ Definition:
12
+
13
+ ``` rescript
14
+ module Provider = {
15
+ let createClient: unit => queryClientValue
16
+ }
17
+ ```
18
+ Usage:
19
+ ``` rescript
20
+ let client = ReactQuery.Provider.createClient()
21
+ ```
22
+
23
+ ### ` ReactQuery.Provider.make() `
24
+
25
+ The React Context Provider responsible to hold all the react-query context
26
+
27
+ Definition:
28
+
29
+ ``` rescript
30
+ module Provider = {
31
+ let make: (
32
+ ~client: queryClientValue,
33
+ ~contextSharing: bool,
34
+ ~children: React.element
35
+ ) => React.element
36
+ }
37
+ ```
You can’t perform that action at this time.
0 commit comments