You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`useForgotPassword` calls the `forgotPassword` method from [`authProvider`](/docs/authentication/auth-provider) under the hood.
8
8
9
-
It returns the result of `react-query`'s [useMutation](https://tanstack.com/query/v4/docs/framework/react/reference/useMutation) which includes many properties, some of which being `isSuccess` and `isError`.
9
+
It returns the result of `react-query`'s [useMutation](https://tanstack.com/query/v5/docs/react/reference/useMutation) which includes many properties, some of which being `isSuccess` and `isError`.
10
10
11
11
Data that is resolved from `forgotPassword` will be returned as the `data` in the query result with the following type:
`useLogin` calls `login` method from [`authProvider`](/docs/authentication/auth-provider) under the hood.
8
8
9
-
It returns the result of `react-query`'s [useMutation](https://tanstack.com/query/v4/docs/framework/react/reference/useMutation) which includes many properties, some of which being `isSuccess` and `isError`.
9
+
It returns the result of `react-query`'s [useMutation](https://tanstack.com/query/v5/docs/react/reference/useMutation) which includes many properties, some of which being `isSuccess` and `isError`.
10
10
11
11
Data that is resolved from `login` will be returned as the `data` in the query result with the following type:
`useLogout` calls the `logout` method from the [`authProvider`](/docs/authentication/auth-provider) under the hood.
8
8
9
-
It returns the result of `react-query`'s [useMutation](https://tanstack.com/query/v4/docs/framework/react/reference/useMutation) which includes many properties, some of which being `isSuccess` and `isError`.
9
+
It returns the result of `react-query`'s [useMutation](https://tanstack.com/query/v5/docs/react/reference/useMutation) which includes many properties, some of which being `isSuccess` and `isError`.
10
10
11
11
Data that is resolved from `logout` will be returned as the `data` in the query result with the following type:
`useOnError` calls the [`onError`][on-error] method from the [`authProvider`][auth-provider] under the hood.
8
8
9
-
It returns the result of `react-query`'s [useMutation](https://tanstack.com/query/v4/docs/react/reference/useMutation), which includes many properties like `isSuccess` and `isError`.
9
+
It returns the result of `react-query`'s [useMutation](https://tanstack.com/query/v5/docs/react/reference/useMutation), which includes many properties like `isSuccess` and `isError`.
10
10
11
11
Data that is resolved from the [`onError`][on-error] will be returned as the `data` in the query result with the following type:
`useRegister` calls `register` method from [`authProvider`](/docs/authentication/auth-provider) under the hood.
8
8
9
-
It returns the result of `react-query`'s [useMutation](https://tanstack.com/query/v4/docs/framework/react/reference/useMutation) which includes many properties, some of which being isSuccess and isError.
9
+
It returns the result of `react-query`'s [useMutation](https://tanstack.com/query/v5/docs/react/reference/useMutation) which includes many properties, some of which being isSuccess and isError.
10
10
11
11
Data that is resolved from `register` will be returned as the `data` in the query result with the following type:
Copy file name to clipboardExpand all lines: documentation/docs/core/interface-references/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,7 +215,7 @@ type GraphQLQueryOptions = {
215
215
216
216
### QueryFunctionContext
217
217
218
-
Context to be passed to the query function. Refer to [Query Function Context](https://tanstack.com/query/v4/docs/guides/query-functions#queryfunctioncontext) for more information.
218
+
Context to be passed to the query function. Refer to [Query Function Context](https://tanstack.com/query/v5/docs/react/guides/query-functions#queryfunctioncontext) for more information.
`useCreateMany` is used for creating multiple records. It is an extended version of TanStack Query's [`useMutation`](https://tanstack.com/query/v4/docs/react/reference/useMutation) and not only supports all features of the mutation but also adds some extra features.
6
+
`useCreateMany` is used for creating multiple records. It is an extended version of TanStack Query's [`useMutation`](https://tanstack.com/query/v5/docs/react/reference/useMutation) and not only supports all features of the mutation but also adds some extra features.
7
7
8
8
It uses the `createMany` method as the **mutation function** from the [`dataProvider`](/docs/data/data-provider) which is passed to `<Refine />`.
9
9
@@ -51,7 +51,7 @@ When the `useCreateMany` mutation runs successfully, it will call the `publish`
51
51
52
52
When the `useCreateMany` mutation runs successfully, it will invalidate the following queries from the current `resource`: `"list"` and `"many"` by default. Which means that, if you use `useList` or `useMany` hooks in the same page, they will refetch the data after the mutation is completed. You can change this behavior by passing [`invalidates`](#invalidates) prop.
53
53
54
-
> For more information, refer to the [invalidation documentation →](https://tanstack.com/query/v4/docs/react/guides/query-invalidation)
54
+
> For more information, refer to the [invalidation documentation →](https://tanstack.com/query/v5/docs/react/guides/query-invalidation)
55
55
56
56
## Audit Logs
57
57
@@ -65,7 +65,7 @@ When the `useCreateMany` mutation runs successfully, it will call the `log` meth
65
65
66
66
`mutationOptions` is used to pass options to the `useMutation` hook. It is useful when you want to pass additional options to the `useMutation` hook.
67
67
68
-
[Refer to the `useMutation` documentation for more information →](https://tanstack.com/query/v4/docs/react/reference/useMutation)
68
+
[Refer to the `useMutation` documentation for more information →](https://tanstack.com/query/v5/docs/react/reference/useMutation)
69
69
70
70
```tsx
71
71
useCreateMany({
@@ -282,7 +282,7 @@ mutate({
282
282
283
283
Returns an object with TanStack Query's `useMutation` return values.
284
284
285
-
> For more information, refer to the [`useMutation` documentation →](https://tanstack.com/query/v4/docs/react/reference/useMutation)
285
+
> For more information, refer to the [`useMutation` documentation →](https://tanstack.com/query/v5/docs/react/reference/useMutation)
0 commit comments