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
1111Definition:
1212
1313``` rescript
14- module Provider = {
15- let createClient: unit => queryClientValue
16- }
14+ module Provider = {
15+ let createClient: unit => queryClientValue
16+ }
1717```
1818Usage:
1919``` rescript
20- let client = ReactQuery.Provider.createClient()
20+ let client = ReactQuery.Provider.createClient()
2121```
2222
2323### ` ReactQuery.Provider.make() `
@@ -27,11 +27,17 @@ The React Context Provider responsible to hold all the react-query context
2727Definition:
2828
2929``` rescript
30- module Provider = {
31- let make: (
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>
3743```
You can’t perform that action at this time.
0 commit comments