Skip to content

Commit

Permalink
Merge pull request #9486 from marmelab/fix-updatemany
Browse files Browse the repository at this point in the history
Fix `useUpdateMany` doesn't accept the `returnPromise` option at call time
  • Loading branch information
slax57 authored Dec 4, 2023
2 parents efaf26b + 5ec7fa3 commit 4a9c816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ra-core/src/dataProvider/useUpdateMany.ts
Original file line number Diff line number Diff line change
@@ -305,7 +305,7 @@ export const useUpdateMany = <
) => {
const {
mutationMode,
returnPromise,
returnPromise = reactMutationOptions.returnPromise,
onSuccess,
onSettled,
onError,
@@ -458,7 +458,7 @@ export type UseUpdateManyOptions<
Array<RecordType['id']>,
MutationError,
Partial<UseUpdateManyMutateParams<RecordType>>
> & { mutationMode?: MutationMode };
> & { mutationMode?: MutationMode; returnPromise?: boolean };

export type UseUpdateManyResult<
RecordType extends RaRecord = any,

0 comments on commit 4a9c816

Please sign in to comment.