@refinedev/core 4.57.9 → 4.57.11
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/CHANGELOG.md +18 -0
- package/README.md +16 -2
- package/dist/hooks/accessControl/useCan/index.d.cts +1 -1
- package/dist/hooks/accessControl/useCan/index.d.mts +1 -1
- package/dist/hooks/accessControl/useCan/index.d.mts.map +1 -1
- package/dist/hooks/accessControl/useCan/index.d.ts +1 -1
- package/dist/hooks/button/button-can-access/index.d.cts +1 -0
- package/dist/hooks/button/button-can-access/index.d.cts.map +1 -1
- package/dist/hooks/button/button-can-access/index.d.mts +1 -0
- package/dist/hooks/button/button-can-access/index.d.mts.map +1 -0
- package/dist/hooks/button/button-can-access/index.d.ts +1 -0
- package/dist/hooks/button/button-can-access/index.d.ts.map +1 -1
- package/dist/hooks/button/navigation-button/index.d.cts.map +1 -1
- package/dist/hooks/button/navigation-button/index.d.ts.map +1 -1
- package/dist/hooks/data/useCreate.d.cts +1 -1
- package/dist/hooks/data/useCreate.d.mts +1 -1
- package/dist/hooks/data/useCreate.d.mts.map +1 -1
- package/dist/hooks/data/useCreate.d.ts +1 -1
- package/dist/hooks/data/useCreateMany.d.cts +1 -1
- package/dist/hooks/data/useCreateMany.d.mts +1 -1
- package/dist/hooks/data/useCreateMany.d.mts.map +1 -1
- package/dist/hooks/data/useCreateMany.d.ts +1 -1
- package/dist/hooks/data/useCustom.d.cts +1 -1
- package/dist/hooks/data/useCustom.d.mts +1 -1
- package/dist/hooks/data/useCustom.d.mts.map +1 -1
- package/dist/hooks/data/useCustom.d.ts +1 -1
- package/dist/hooks/data/useCustomMutation.d.cts +1 -1
- package/dist/hooks/data/useCustomMutation.d.mts +1 -1
- package/dist/hooks/data/useCustomMutation.d.mts.map +1 -1
- package/dist/hooks/data/useCustomMutation.d.ts +1 -1
- package/dist/hooks/data/useDelete.d.cts +1 -1
- package/dist/hooks/data/useDelete.d.mts +1 -1
- package/dist/hooks/data/useDelete.d.mts.map +1 -1
- package/dist/hooks/data/useDelete.d.ts +1 -1
- package/dist/hooks/data/useDeleteMany.d.cts +1 -1
- package/dist/hooks/data/useDeleteMany.d.mts +1 -1
- package/dist/hooks/data/useDeleteMany.d.mts.map +1 -1
- package/dist/hooks/data/useDeleteMany.d.ts +1 -1
- package/dist/hooks/data/useList.d.cts +1 -1
- package/dist/hooks/data/useList.d.mts +1 -1
- package/dist/hooks/data/useList.d.mts.map +1 -1
- package/dist/hooks/data/useList.d.ts +1 -1
- package/dist/hooks/data/useMany.d.cts +1 -1
- package/dist/hooks/data/useMany.d.mts +1 -1
- package/dist/hooks/data/useMany.d.mts.map +1 -1
- package/dist/hooks/data/useMany.d.ts +1 -1
- package/dist/hooks/data/useOne.d.cts +1 -1
- package/dist/hooks/data/useOne.d.mts +1 -1
- package/dist/hooks/data/useOne.d.mts.map +1 -1
- package/dist/hooks/data/useOne.d.ts +1 -1
- package/dist/hooks/data/useUpdate.d.cts +1 -1
- package/dist/hooks/data/useUpdate.d.mts +1 -1
- package/dist/hooks/data/useUpdate.d.mts.map +1 -1
- package/dist/hooks/data/useUpdate.d.ts +1 -1
- package/dist/hooks/data/useUpdateMany.d.cts +1 -1
- package/dist/hooks/data/useUpdateMany.d.mts +1 -1
- package/dist/hooks/data/useUpdateMany.d.mts.map +1 -1
- package/dist/hooks/data/useUpdateMany.d.ts +1 -1
- package/dist/index.cjs +16 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +17 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/hooks/accessControl/useCan/index.ts +1 -1
- package/src/hooks/button/button-can-access/index.tsx +2 -1
- package/src/hooks/button/navigation-button/index.tsx +1 -0
- package/src/hooks/data/useCreate.ts +1 -1
- package/src/hooks/data/useCreateMany.ts +1 -1
- package/src/hooks/data/useCustom.ts +1 -1
- package/src/hooks/data/useCustomMutation.ts +1 -1
- package/src/hooks/data/useDelete.ts +1 -1
- package/src/hooks/data/useDeleteMany.ts +1 -1
- package/src/hooks/data/useList.ts +1 -1
- package/src/hooks/data/useMany.ts +1 -1
- package/src/hooks/data/useOne.ts +1 -1
- package/src/hooks/data/useUpdate.ts +1 -1
- package/src/hooks/data/useUpdateMany.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @refinedev/core
|
|
2
2
|
|
|
3
|
+
## 4.57.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#6889](https://github.com/refinedev/refine/pull/6889) [`6087f72c2d38977410e401efae61c5583d61425d`](https://github.com/refinedev/refine/commit/6087f72c2d38977410e401efae61c5583d61425d) Thanks [@DoguhanOzgurAkca](https://github.com/DoguhanOzgurAkca)! - [chore: replace outdated and broken `@tanstack/query` links](https://github.com/refinedev/refine/pull/6889)
|
|
8
|
+
|
|
9
|
+
Updated broken links to `@tanstack/query` documentation for `useMutation` in TSDoc definitions.
|
|
10
|
+
|
|
11
|
+
## 4.57.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#6826](https://github.com/refinedev/refine/pull/6826) [`9dca95e276fa704911c32599473a54a71a6c5246`](https://github.com/refinedev/refine/commit/9dca95e276fa704911c32599473a54a71a6c5246) Thanks [@devarsh-mavani-19](https://github.com/devarsh-mavani-19)! - fix: pass meta params to useCan hook params #6833
|
|
16
|
+
|
|
17
|
+
Now access control provider can receive additional arguments through meta params.
|
|
18
|
+
|
|
19
|
+
Resolves [#6833]
|
|
20
|
+
|
|
3
21
|
## 4.57.9
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -11,15 +11,21 @@
|
|
|
11
11
|
<a href="https://refine.dev/docs/">Documentation</a> |
|
|
12
12
|
<a href="https://refine.dev/examples/">Examples</a> |
|
|
13
13
|
<a href="https://discord.gg/refine">Discord</a> |
|
|
14
|
-
<a href="https://refine.dev/blog/">Blog</a>
|
|
14
|
+
<a href="https://refine.dev/blog/">Blog</a> |
|
|
15
|
+
<a href="https://s.refine.dev/tJw4XFo">Refine AI</a>
|
|
15
16
|
</div>
|
|
16
17
|
</div>
|
|
17
18
|
|
|
18
19
|
<br/>
|
|
19
20
|
<br/>
|
|
20
21
|
|
|
21
|
-
<div align="center"><strong>The sweet spot between the low/no code and “starting from scratch” for CRUD-heavy applications.</strong><br>
|
|
22
|
+
<div align="center"><strong>The sweet spot between the low/no code and “starting from scratch” for CRUD-heavy applications.</strong><br>
|
|
23
|
+
|
|
24
|
+
Refine is an open source, React meta-framework for enterprise. It provides a headless solution for everything from admin panels to
|
|
25
|
+
dashboards and internal tools.
|
|
22
26
|
<br />
|
|
27
|
+
|
|
28
|
+
<strong>Refine also now powers <a href="https://s.refine.dev/tJw4XFo">Refine AI</a>, our purpose built AI Agent.</strong>
|
|
23
29
|
<br />
|
|
24
30
|
|
|
25
31
|
</div>
|
|
@@ -66,6 +72,14 @@ Or you can create a new project on your browser:
|
|
|
66
72
|
<img height="48" width="245" src="https://refine.ams3.cdn.digitaloceanspaces.com/assets/try-it-in-your-browser.png" />
|
|
67
73
|
</a>
|
|
68
74
|
|
|
75
|
+
<br>
|
|
76
|
+
|
|
77
|
+
You can also try Refine AI for free to create projects:
|
|
78
|
+
|
|
79
|
+
<a href="https://s.refine.dev/tJw4XFo" target="_blank">
|
|
80
|
+
<img height="48" width="245" src="https://refine.ams3.cdn.digitaloceanspaces.com/assets/try-out-refine-ai-2.png" />
|
|
81
|
+
</a>
|
|
82
|
+
|
|
69
83
|
## Quick Start
|
|
70
84
|
|
|
71
85
|
Here's Refine in action, the below code is an example of a simple CRUD application using Refine + React Router + Material UI:
|
|
@@ -7,7 +7,7 @@ export type UseCanProps = CanParams & {
|
|
|
7
7
|
queryOptions?: UseQueryOptions<CanReturnType>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* `useCan` uses the `can` as the query function for `react-query`'s {@link https://
|
|
10
|
+
* `useCan` uses the `can` as the query function for `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`}. It takes the parameters that `can` takes. It can also be configured with `queryOptions` for `useQuery`. Returns the result of `useQuery`.
|
|
11
11
|
* @see {@link https://refine.dev/docs/api-reference/core/hooks/accessControl/useCan} for more details.
|
|
12
12
|
*
|
|
13
13
|
* @typeParam CanParams {@link https://refine.dev/docs/core/interfaceReferences#canparams}
|
|
@@ -7,7 +7,7 @@ export type UseCanProps = CanParams & {
|
|
|
7
7
|
queryOptions?: UseQueryOptions<CanReturnType>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* `useCan` uses the `can` as the query function for `react-query`'s {@link https://
|
|
10
|
+
* `useCan` uses the `can` as the query function for `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`}. It takes the parameters that `can` takes. It can also be configured with `queryOptions` for `useQuery`. Returns the result of `useQuery`.
|
|
11
11
|
* @see {@link https://refine.dev/docs/api-reference/core/hooks/accessControl/useCan} for more details.
|
|
12
12
|
*
|
|
13
13
|
* @typeParam CanParams {@link https://refine.dev/docs/core/interfaceReferences#canparams}
|
|
@@ -7,7 +7,7 @@ export type UseCanProps = CanParams & {
|
|
|
7
7
|
queryOptions?: UseQueryOptions<CanReturnType>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* `useCan` uses the `can` as the query function for `react-query`'s {@link https://
|
|
10
|
+
* `useCan` uses the `can` as the query function for `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`}. It takes the parameters that `can` takes. It can also be configured with `queryOptions` for `useQuery`. Returns the result of `useQuery`.
|
|
11
11
|
* @see {@link https://refine.dev/docs/api-reference/core/hooks/accessControl/useCan} for more details.
|
|
12
12
|
*
|
|
13
13
|
* @typeParam CanParams {@link https://refine.dev/docs/core/interfaceReferences#canparams}
|
|
@@ -7,7 +7,7 @@ export type UseCanProps = CanParams & {
|
|
|
7
7
|
queryOptions?: UseQueryOptions<CanReturnType>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* `useCan` uses the `can` as the query function for `react-query`'s {@link https://
|
|
10
|
+
* `useCan` uses the `can` as the query function for `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`}. It takes the parameters that `can` takes. It can also be configured with `queryOptions` for `useQuery`. Returns the result of `useQuery`.
|
|
11
11
|
* @see {@link https://refine.dev/docs/api-reference/core/hooks/accessControl/useCan} for more details.
|
|
12
12
|
*
|
|
13
13
|
* @typeParam CanParams {@link https://refine.dev/docs/core/interfaceReferences#canparams}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/button/button-can-access/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAE5D,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/button/button-can-access/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAA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|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/button/button-can-access/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAE5D,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,aAAa,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,UACtB,oBAAoB,KAC1B,qBAyCF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/button/navigation-button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAE3E,MAAM,MAAM,qB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AM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,aAAa,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,KAAK,CAAC,aAAa,CAChC,KAAK,CAAC,iBAAiB,CAAC;QACtB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;QACpB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC,CACH,CAAC;CACH,CAAC;AAEF,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,qBAAqB,GAC3B,sBAAsB,CA6DxB"}
|
|
@@ -35,7 +35,7 @@ export type UseCreateProps<TData extends BaseRecord = BaseRecord, TError extends
|
|
|
35
35
|
mutationOptions?: Omit<UseMutationOptions<CreateResponse<TData>, TError, UseCreateParams<TData, TError, TVariables>, unknown>, "mutationFn">;
|
|
36
36
|
} & UseLoadingOvertimeOptionsProps & UseCreateParams<TData, TError, TVariables>;
|
|
37
37
|
/**
|
|
38
|
-
* `useCreate` is a modified version of `react-query`'s {@link https://
|
|
38
|
+
* `useCreate` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for create mutations.
|
|
39
39
|
*
|
|
40
40
|
* It uses `create` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
41
41
|
*
|
|
@@ -35,7 +35,7 @@ export type UseCreateProps<TData extends BaseRecord = BaseRecord, TError extends
|
|
|
35
35
|
mutationOptions?: Omit<UseMutationOptions<CreateResponse<TData>, TError, UseCreateParams<TData, TError, TVariables>, unknown>, "mutationFn">;
|
|
36
36
|
} & UseLoadingOvertimeOptionsProps & UseCreateParams<TData, TError, TVariables>;
|
|
37
37
|
/**
|
|
38
|
-
* `useCreate` is a modified version of `react-query`'s {@link https://
|
|
38
|
+
* `useCreate` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for create mutations.
|
|
39
39
|
*
|
|
40
40
|
* It uses `create` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
41
41
|
*
|
|
@@ -35,7 +35,7 @@ export type UseCreateProps<TData extends BaseRecord = BaseRecord, TError extends
|
|
|
35
35
|
mutationOptions?: Omit<UseMutationOptions<CreateResponse<TData>, TError, UseCreateParams<TData, TError, TVariables>, unknown>, "mutationFn">;
|
|
36
36
|
} & UseLoadingOvertimeOptionsProps & UseCreateParams<TData, TError, TVariables>;
|
|
37
37
|
/**
|
|
38
|
-
* `useCreate` is a modified version of `react-query`'s {@link https://
|
|
38
|
+
* `useCreate` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for create mutations.
|
|
39
39
|
*
|
|
40
40
|
* It uses `create` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
41
41
|
*
|
|
@@ -35,7 +35,7 @@ export type UseCreateProps<TData extends BaseRecord = BaseRecord, TError extends
|
|
|
35
35
|
mutationOptions?: Omit<UseMutationOptions<CreateResponse<TData>, TError, UseCreateParams<TData, TError, TVariables>, unknown>, "mutationFn">;
|
|
36
36
|
} & UseLoadingOvertimeOptionsProps & UseCreateParams<TData, TError, TVariables>;
|
|
37
37
|
/**
|
|
38
|
-
* `useCreate` is a modified version of `react-query`'s {@link https://
|
|
38
|
+
* `useCreate` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for create mutations.
|
|
39
39
|
*
|
|
40
40
|
* It uses `create` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
41
41
|
*
|
|
@@ -16,7 +16,7 @@ export type UseCreateManyProps<TData extends BaseRecord = BaseRecord, TError ext
|
|
|
16
16
|
mutationOptions?: Omit<UseMutationOptions<CreateManyResponse<TData>, TError, UseCreateManyParams<TData, TError, TVariables>>, "mutationFn">;
|
|
17
17
|
} & UseLoadingOvertimeOptionsProps & UseCreateManyParams<TData, TError, TVariables>;
|
|
18
18
|
/**
|
|
19
|
-
* `useCreateMany` is a modified version of `react-query`'s {@link https://
|
|
19
|
+
* `useCreateMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple create mutations.
|
|
20
20
|
*
|
|
21
21
|
* It uses `createMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
22
22
|
*
|
|
@@ -16,7 +16,7 @@ export type UseCreateManyProps<TData extends BaseRecord = BaseRecord, TError ext
|
|
|
16
16
|
mutationOptions?: Omit<UseMutationOptions<CreateManyResponse<TData>, TError, UseCreateManyParams<TData, TError, TVariables>>, "mutationFn">;
|
|
17
17
|
} & UseLoadingOvertimeOptionsProps & UseCreateManyParams<TData, TError, TVariables>;
|
|
18
18
|
/**
|
|
19
|
-
* `useCreateMany` is a modified version of `react-query`'s {@link https://
|
|
19
|
+
* `useCreateMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple create mutations.
|
|
20
20
|
*
|
|
21
21
|
* It uses `createMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
22
22
|
*
|
|
@@ -16,7 +16,7 @@ export type UseCreateManyProps<TData extends BaseRecord = BaseRecord, TError ext
|
|
|
16
16
|
mutationOptions?: Omit<UseMutationOptions<CreateManyResponse<TData>, TError, UseCreateManyParams<TData, TError, TVariables>>, "mutationFn">;
|
|
17
17
|
} & UseLoadingOvertimeOptionsProps & UseCreateManyParams<TData, TError, TVariables>;
|
|
18
18
|
/**
|
|
19
|
-
* `useCreateMany` is a modified version of `react-query`'s {@link https://
|
|
19
|
+
* `useCreateMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple create mutations.
|
|
20
20
|
*
|
|
21
21
|
* It uses `createMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
22
22
|
*
|
|
@@ -16,7 +16,7 @@ export type UseCreateManyProps<TData extends BaseRecord = BaseRecord, TError ext
|
|
|
16
16
|
mutationOptions?: Omit<UseMutationOptions<CreateManyResponse<TData>, TError, UseCreateManyParams<TData, TError, TVariables>>, "mutationFn">;
|
|
17
17
|
} & UseLoadingOvertimeOptionsProps & UseCreateManyParams<TData, TError, TVariables>;
|
|
18
18
|
/**
|
|
19
|
-
* `useCreateMany` is a modified version of `react-query`'s {@link https://
|
|
19
|
+
* `useCreateMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple create mutations.
|
|
20
20
|
*
|
|
21
21
|
* It uses `createMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
22
22
|
*
|
|
@@ -45,7 +45,7 @@ export type UseCustomProps<TQueryFnData, TError, TQuery, TPayload, TData> = {
|
|
|
45
45
|
dataProviderName?: string;
|
|
46
46
|
} & SuccessErrorNotification<CustomResponse<TData>, TError, Prettify<UseCustomConfig<TQuery, TPayload> & MetaQuery>> & UseLoadingOvertimeOptionsProps;
|
|
47
47
|
/**
|
|
48
|
-
* `useCustom` is a modified version of `react-query`'s {@link https://
|
|
48
|
+
* `useCustom` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for custom requests.
|
|
49
49
|
*
|
|
50
50
|
* It uses the `custom` method from the `dataProvider` which is passed to `<Refine>`.
|
|
51
51
|
*
|
|
@@ -45,7 +45,7 @@ export type UseCustomProps<TQueryFnData, TError, TQuery, TPayload, TData> = {
|
|
|
45
45
|
dataProviderName?: string;
|
|
46
46
|
} & SuccessErrorNotification<CustomResponse<TData>, TError, Prettify<UseCustomConfig<TQuery, TPayload> & MetaQuery>> & UseLoadingOvertimeOptionsProps;
|
|
47
47
|
/**
|
|
48
|
-
* `useCustom` is a modified version of `react-query`'s {@link https://
|
|
48
|
+
* `useCustom` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for custom requests.
|
|
49
49
|
*
|
|
50
50
|
* It uses the `custom` method from the `dataProvider` which is passed to `<Refine>`.
|
|
51
51
|
*
|
|
@@ -45,7 +45,7 @@ export type UseCustomProps<TQueryFnData, TError, TQuery, TPayload, TData> = {
|
|
|
45
45
|
dataProviderName?: string;
|
|
46
46
|
} & SuccessErrorNotification<CustomResponse<TData>, TError, Prettify<UseCustomConfig<TQuery, TPayload> & MetaQuery>> & UseLoadingOvertimeOptionsProps;
|
|
47
47
|
/**
|
|
48
|
-
* `useCustom` is a modified version of `react-query`'s {@link https://
|
|
48
|
+
* `useCustom` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for custom requests.
|
|
49
49
|
*
|
|
50
50
|
* It uses the `custom` method from the `dataProvider` which is passed to `<Refine>`.
|
|
51
51
|
*
|
|
@@ -45,7 +45,7 @@ export type UseCustomProps<TQueryFnData, TError, TQuery, TPayload, TData> = {
|
|
|
45
45
|
dataProviderName?: string;
|
|
46
46
|
} & SuccessErrorNotification<CustomResponse<TData>, TError, Prettify<UseCustomConfig<TQuery, TPayload> & MetaQuery>> & UseLoadingOvertimeOptionsProps;
|
|
47
47
|
/**
|
|
48
|
-
* `useCustom` is a modified version of `react-query`'s {@link https://
|
|
48
|
+
* `useCustom` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for custom requests.
|
|
49
49
|
*
|
|
50
50
|
* It uses the `custom` method from the `dataProvider` which is passed to `<Refine>`.
|
|
51
51
|
*
|
|
@@ -26,7 +26,7 @@ export type UseCustomMutationProps<TData extends BaseRecord = BaseRecord, TError
|
|
|
26
26
|
mutationOptions?: Omit<UseMutationOptions<CreateResponse<TData>, TError, useCustomMutationParams<TData, TError, TVariables>, unknown>, "mutationFn" | "onError" | "onSuccess">;
|
|
27
27
|
} & UseLoadingOvertimeOptionsProps;
|
|
28
28
|
/**
|
|
29
|
-
* `useCustomMutation` is a modified version of `react-query`'s {@link https://
|
|
29
|
+
* `useCustomMutation` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for create mutations.
|
|
30
30
|
*
|
|
31
31
|
* It uses the `custom` method from the `dataProvider` which is passed to `<Refine>`.
|
|
32
32
|
*
|
|
@@ -26,7 +26,7 @@ export type UseCustomMutationProps<TData extends BaseRecord = BaseRecord, TError
|
|
|
26
26
|
mutationOptions?: Omit<UseMutationOptions<CreateResponse<TData>, TError, useCustomMutationParams<TData, TError, TVariables>, unknown>, "mutationFn" | "onError" | "onSuccess">;
|
|
27
27
|
} & UseLoadingOvertimeOptionsProps;
|
|
28
28
|
/**
|
|
29
|
-
* `useCustomMutation` is a modified version of `react-query`'s {@link https://
|
|
29
|
+
* `useCustomMutation` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for create mutations.
|
|
30
30
|
*
|
|
31
31
|
* It uses the `custom` method from the `dataProvider` which is passed to `<Refine>`.
|
|
32
32
|
*
|
|
@@ -26,7 +26,7 @@ export type UseCustomMutationProps<TData extends BaseRecord = BaseRecord, TError
|
|
|
26
26
|
mutationOptions?: Omit<UseMutationOptions<CreateResponse<TData>, TError, useCustomMutationParams<TData, TError, TVariables>, unknown>, "mutationFn" | "onError" | "onSuccess">;
|
|
27
27
|
} & UseLoadingOvertimeOptionsProps;
|
|
28
28
|
/**
|
|
29
|
-
* `useCustomMutation` is a modified version of `react-query`'s {@link https://
|
|
29
|
+
* `useCustomMutation` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for create mutations.
|
|
30
30
|
*
|
|
31
31
|
* It uses the `custom` method from the `dataProvider` which is passed to `<Refine>`.
|
|
32
32
|
*
|
|
@@ -26,7 +26,7 @@ export type UseCustomMutationProps<TData extends BaseRecord = BaseRecord, TError
|
|
|
26
26
|
mutationOptions?: Omit<UseMutationOptions<CreateResponse<TData>, TError, useCustomMutationParams<TData, TError, TVariables>, unknown>, "mutationFn" | "onError" | "onSuccess">;
|
|
27
27
|
} & UseLoadingOvertimeOptionsProps;
|
|
28
28
|
/**
|
|
29
|
-
* `useCustomMutation` is a modified version of `react-query`'s {@link https://
|
|
29
|
+
* `useCustomMutation` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for create mutations.
|
|
30
30
|
*
|
|
31
31
|
* It uses the `custom` method from the `dataProvider` which is passed to `<Refine>`.
|
|
32
32
|
*
|
|
@@ -50,7 +50,7 @@ export type UseDeleteProps<TData extends BaseRecord = BaseRecord, TError extends
|
|
|
50
50
|
mutationOptions?: Omit<UseMutationOptions<DeleteOneResponse<TData>, TError, DeleteParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
51
|
} & UseLoadingOvertimeOptionsProps;
|
|
52
52
|
/**
|
|
53
|
-
* `useDelete` is a modified version of `react-query`'s {@link https://
|
|
53
|
+
* `useDelete` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for delete mutations.
|
|
54
54
|
*
|
|
55
55
|
* It uses `deleteOne` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
56
|
*
|
|
@@ -50,7 +50,7 @@ export type UseDeleteProps<TData extends BaseRecord = BaseRecord, TError extends
|
|
|
50
50
|
mutationOptions?: Omit<UseMutationOptions<DeleteOneResponse<TData>, TError, DeleteParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
51
|
} & UseLoadingOvertimeOptionsProps;
|
|
52
52
|
/**
|
|
53
|
-
* `useDelete` is a modified version of `react-query`'s {@link https://
|
|
53
|
+
* `useDelete` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for delete mutations.
|
|
54
54
|
*
|
|
55
55
|
* It uses `deleteOne` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
56
|
*
|
|
@@ -50,7 +50,7 @@ export type UseDeleteProps<TData extends BaseRecord = BaseRecord, TError extends
|
|
|
50
50
|
mutationOptions?: Omit<UseMutationOptions<DeleteOneResponse<TData>, TError, DeleteParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
51
|
} & UseLoadingOvertimeOptionsProps;
|
|
52
52
|
/**
|
|
53
|
-
* `useDelete` is a modified version of `react-query`'s {@link https://
|
|
53
|
+
* `useDelete` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for delete mutations.
|
|
54
54
|
*
|
|
55
55
|
* It uses `deleteOne` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
56
|
*
|
|
@@ -50,7 +50,7 @@ export type UseDeleteProps<TData extends BaseRecord = BaseRecord, TError extends
|
|
|
50
50
|
mutationOptions?: Omit<UseMutationOptions<DeleteOneResponse<TData>, TError, DeleteParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
51
|
} & UseLoadingOvertimeOptionsProps;
|
|
52
52
|
/**
|
|
53
|
-
* `useDelete` is a modified version of `react-query`'s {@link https://
|
|
53
|
+
* `useDelete` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for delete mutations.
|
|
54
54
|
*
|
|
55
55
|
* It uses `deleteOne` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
56
|
*
|
|
@@ -50,7 +50,7 @@ export type UseDeleteManyProps<TData extends BaseRecord = BaseRecord, TError ext
|
|
|
50
50
|
mutationOptions?: Omit<UseMutationOptions<DeleteManyResponse<TData>, TError, DeleteManyParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
51
|
} & UseLoadingOvertimeOptionsProps;
|
|
52
52
|
/**
|
|
53
|
-
* `useDeleteMany` is a modified version of `react-query`'s {@link https://
|
|
53
|
+
* `useDeleteMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple delete mutations.
|
|
54
54
|
*
|
|
55
55
|
* It uses `deleteMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
56
|
*
|
|
@@ -50,7 +50,7 @@ export type UseDeleteManyProps<TData extends BaseRecord = BaseRecord, TError ext
|
|
|
50
50
|
mutationOptions?: Omit<UseMutationOptions<DeleteManyResponse<TData>, TError, DeleteManyParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
51
|
} & UseLoadingOvertimeOptionsProps;
|
|
52
52
|
/**
|
|
53
|
-
* `useDeleteMany` is a modified version of `react-query`'s {@link https://
|
|
53
|
+
* `useDeleteMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple delete mutations.
|
|
54
54
|
*
|
|
55
55
|
* It uses `deleteMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
56
|
*
|
|
@@ -50,7 +50,7 @@ export type UseDeleteManyProps<TData extends BaseRecord = BaseRecord, TError ext
|
|
|
50
50
|
mutationOptions?: Omit<UseMutationOptions<DeleteManyResponse<TData>, TError, DeleteManyParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
51
|
} & UseLoadingOvertimeOptionsProps;
|
|
52
52
|
/**
|
|
53
|
-
* `useDeleteMany` is a modified version of `react-query`'s {@link https://
|
|
53
|
+
* `useDeleteMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple delete mutations.
|
|
54
54
|
*
|
|
55
55
|
* It uses `deleteMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
56
|
*
|
|
@@ -50,7 +50,7 @@ export type UseDeleteManyProps<TData extends BaseRecord = BaseRecord, TError ext
|
|
|
50
50
|
mutationOptions?: Omit<UseMutationOptions<DeleteManyResponse<TData>, TError, DeleteManyParams<TData, TError, TVariables>, DeleteContext<TData>>, "mutationFn" | "onError" | "onSuccess" | "onSettled" | "onMutate">;
|
|
51
51
|
} & UseLoadingOvertimeOptionsProps;
|
|
52
52
|
/**
|
|
53
|
-
* `useDeleteMany` is a modified version of `react-query`'s {@link https://
|
|
53
|
+
* `useDeleteMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple delete mutations.
|
|
54
54
|
*
|
|
55
55
|
* It uses `deleteMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
56
56
|
*
|
|
@@ -58,7 +58,7 @@ export type UseListProps<TQueryFnData, TError, TData> = {
|
|
|
58
58
|
queryOptions?: UseQueryOptions<GetListResponse<TQueryFnData>, TError, GetListResponse<TData>>;
|
|
59
59
|
} & BaseListProps & SuccessErrorNotification<GetListResponse<TData>, TError, Prettify<BaseListProps>> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
60
60
|
/**
|
|
61
|
-
* `useList` is a modified version of `react-query`'s {@link https://
|
|
61
|
+
* `useList` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving items from a `resource` with pagination, sort, and filter configurations.
|
|
62
62
|
*
|
|
63
63
|
* It uses the `getList` method as the query function from the `dataProvider` which is passed to `<Refine>`.
|
|
64
64
|
*
|
|
@@ -58,7 +58,7 @@ export type UseListProps<TQueryFnData, TError, TData> = {
|
|
|
58
58
|
queryOptions?: UseQueryOptions<GetListResponse<TQueryFnData>, TError, GetListResponse<TData>>;
|
|
59
59
|
} & BaseListProps & SuccessErrorNotification<GetListResponse<TData>, TError, Prettify<BaseListProps>> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
60
60
|
/**
|
|
61
|
-
* `useList` is a modified version of `react-query`'s {@link https://
|
|
61
|
+
* `useList` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving items from a `resource` with pagination, sort, and filter configurations.
|
|
62
62
|
*
|
|
63
63
|
* It uses the `getList` method as the query function from the `dataProvider` which is passed to `<Refine>`.
|
|
64
64
|
*
|
|
@@ -58,7 +58,7 @@ export type UseListProps<TQueryFnData, TError, TData> = {
|
|
|
58
58
|
queryOptions?: UseQueryOptions<GetListResponse<TQueryFnData>, TError, GetListResponse<TData>>;
|
|
59
59
|
} & BaseListProps & SuccessErrorNotification<GetListResponse<TData>, TError, Prettify<BaseListProps>> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
60
60
|
/**
|
|
61
|
-
* `useList` is a modified version of `react-query`'s {@link https://
|
|
61
|
+
* `useList` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving items from a `resource` with pagination, sort, and filter configurations.
|
|
62
62
|
*
|
|
63
63
|
* It uses the `getList` method as the query function from the `dataProvider` which is passed to `<Refine>`.
|
|
64
64
|
*
|
|
@@ -58,7 +58,7 @@ export type UseListProps<TQueryFnData, TError, TData> = {
|
|
|
58
58
|
queryOptions?: UseQueryOptions<GetListResponse<TQueryFnData>, TError, GetListResponse<TData>>;
|
|
59
59
|
} & BaseListProps & SuccessErrorNotification<GetListResponse<TData>, TError, Prettify<BaseListProps>> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
60
60
|
/**
|
|
61
|
-
* `useList` is a modified version of `react-query`'s {@link https://
|
|
61
|
+
* `useList` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving items from a `resource` with pagination, sort, and filter configurations.
|
|
62
62
|
*
|
|
63
63
|
* It uses the `getList` method as the query function from the `dataProvider` which is passed to `<Refine>`.
|
|
64
64
|
*
|
|
@@ -33,7 +33,7 @@ export type UseManyProps<TQueryFnData, TError, TData> = {
|
|
|
33
33
|
dataProviderName?: string;
|
|
34
34
|
} & SuccessErrorNotification<GetManyResponse<TData>, TError, BaseKey[]> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
35
35
|
/**
|
|
36
|
-
* `useMany` is a modified version of `react-query`'s {@link https://
|
|
36
|
+
* `useMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving multiple items from a `resource`.
|
|
37
37
|
*
|
|
38
38
|
* It uses `getMany` method as query function from the `dataProvider` which is passed to `<Refine>`.
|
|
39
39
|
*
|
|
@@ -33,7 +33,7 @@ export type UseManyProps<TQueryFnData, TError, TData> = {
|
|
|
33
33
|
dataProviderName?: string;
|
|
34
34
|
} & SuccessErrorNotification<GetManyResponse<TData>, TError, BaseKey[]> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
35
35
|
/**
|
|
36
|
-
* `useMany` is a modified version of `react-query`'s {@link https://
|
|
36
|
+
* `useMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving multiple items from a `resource`.
|
|
37
37
|
*
|
|
38
38
|
* It uses `getMany` method as query function from the `dataProvider` which is passed to `<Refine>`.
|
|
39
39
|
*
|
|
@@ -33,7 +33,7 @@ export type UseManyProps<TQueryFnData, TError, TData> = {
|
|
|
33
33
|
dataProviderName?: string;
|
|
34
34
|
} & SuccessErrorNotification<GetManyResponse<TData>, TError, BaseKey[]> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
35
35
|
/**
|
|
36
|
-
* `useMany` is a modified version of `react-query`'s {@link https://
|
|
36
|
+
* `useMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving multiple items from a `resource`.
|
|
37
37
|
*
|
|
38
38
|
* It uses `getMany` method as query function from the `dataProvider` which is passed to `<Refine>`.
|
|
39
39
|
*
|
|
@@ -33,7 +33,7 @@ export type UseManyProps<TQueryFnData, TError, TData> = {
|
|
|
33
33
|
dataProviderName?: string;
|
|
34
34
|
} & SuccessErrorNotification<GetManyResponse<TData>, TError, BaseKey[]> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
35
35
|
/**
|
|
36
|
-
* `useMany` is a modified version of `react-query`'s {@link https://
|
|
36
|
+
* `useMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving multiple items from a `resource`.
|
|
37
37
|
*
|
|
38
38
|
* It uses `getMany` method as query function from the `dataProvider` which is passed to `<Refine>`.
|
|
39
39
|
*
|
|
@@ -35,7 +35,7 @@ export type UseOneProps<TQueryFnData, TError, TData> = {
|
|
|
35
35
|
id?: BaseKey;
|
|
36
36
|
} & MetaQuery>> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
37
37
|
/**
|
|
38
|
-
* `useOne` is a modified version of `react-query`'s {@link https://
|
|
38
|
+
* `useOne` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving single items from a `resource`.
|
|
39
39
|
*
|
|
40
40
|
* It uses `getOne` method as query function from the `dataProvider` which is passed to `<Refine>`.
|
|
41
41
|
*
|
|
@@ -35,7 +35,7 @@ export type UseOneProps<TQueryFnData, TError, TData> = {
|
|
|
35
35
|
id?: BaseKey;
|
|
36
36
|
} & MetaQuery>> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
37
37
|
/**
|
|
38
|
-
* `useOne` is a modified version of `react-query`'s {@link https://
|
|
38
|
+
* `useOne` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving single items from a `resource`.
|
|
39
39
|
*
|
|
40
40
|
* It uses `getOne` method as query function from the `dataProvider` which is passed to `<Refine>`.
|
|
41
41
|
*
|
|
@@ -35,7 +35,7 @@ export type UseOneProps<TQueryFnData, TError, TData> = {
|
|
|
35
35
|
id?: BaseKey;
|
|
36
36
|
} & MetaQuery>> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
37
37
|
/**
|
|
38
|
-
* `useOne` is a modified version of `react-query`'s {@link https://
|
|
38
|
+
* `useOne` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving single items from a `resource`.
|
|
39
39
|
*
|
|
40
40
|
* It uses `getOne` method as query function from the `dataProvider` which is passed to `<Refine>`.
|
|
41
41
|
*
|
|
@@ -35,7 +35,7 @@ export type UseOneProps<TQueryFnData, TError, TData> = {
|
|
|
35
35
|
id?: BaseKey;
|
|
36
36
|
} & MetaQuery>> & LiveModeProps & UseLoadingOvertimeOptionsProps;
|
|
37
37
|
/**
|
|
38
|
-
* `useOne` is a modified version of `react-query`'s {@link https://
|
|
38
|
+
* `useOne` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/guides/queries `useQuery`} used for retrieving single items from a `resource`.
|
|
39
39
|
*
|
|
40
40
|
* It uses `getOne` method as query function from the `dataProvider` which is passed to `<Refine>`.
|
|
41
41
|
*
|
|
@@ -69,7 +69,7 @@ export type UseUpdateProps<TData extends BaseRecord = BaseRecord, TError extends
|
|
|
69
69
|
mutationOptions?: Omit<UseMutationOptions<UpdateResponse<TData>, TError, UpdateParams<TData, TError, TVariables>, UpdateContext<TData>>, "mutationFn" | "onMutate">;
|
|
70
70
|
} & UseLoadingOvertimeOptionsProps & UpdateParams<TData, TError, TVariables>;
|
|
71
71
|
/**
|
|
72
|
-
* `useUpdate` is a modified version of `react-query`'s {@link https://
|
|
72
|
+
* `useUpdate` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for update mutations.
|
|
73
73
|
*
|
|
74
74
|
* It uses `update` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
75
75
|
*
|
|
@@ -69,7 +69,7 @@ export type UseUpdateProps<TData extends BaseRecord = BaseRecord, TError extends
|
|
|
69
69
|
mutationOptions?: Omit<UseMutationOptions<UpdateResponse<TData>, TError, UpdateParams<TData, TError, TVariables>, UpdateContext<TData>>, "mutationFn" | "onMutate">;
|
|
70
70
|
} & UseLoadingOvertimeOptionsProps & UpdateParams<TData, TError, TVariables>;
|
|
71
71
|
/**
|
|
72
|
-
* `useUpdate` is a modified version of `react-query`'s {@link https://
|
|
72
|
+
* `useUpdate` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for update mutations.
|
|
73
73
|
*
|
|
74
74
|
* It uses `update` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
75
75
|
*
|