Skip to content

Commit

Permalink
Merge pull request #9978 from marmelab/mutations-is-loading
Browse files Browse the repository at this point in the history
Update mutations results types to include `isLoading`
  • Loading branch information
slax57 authored Jul 8, 2024
2 parents 0379c39 + 2c77786 commit 45151e0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/ra-core/src/dataProvider/useCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,5 @@ export type UseCreateResult<
MutationError,
Partial<UseCreateMutateParams<RecordType>>,
unknown
>,
> & { isLoading: boolean },
];
2 changes: 1 addition & 1 deletion packages/ra-core/src/dataProvider/useDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,5 +490,5 @@ export type UseDeleteResult<
MutationError,
Partial<DeleteParams<RecordType> & { resource?: string }>,
unknown
>,
> & { isLoading: boolean },
];
2 changes: 1 addition & 1 deletion packages/ra-core/src/dataProvider/useDeleteMany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,5 +504,5 @@ export type UseDeleteManyResult<
MutationError,
Partial<DeleteManyParams<RecordType> & { resource?: string }>,
unknown
>,
> & { isLoading: boolean },
];
2 changes: 1 addition & 1 deletion packages/ra-core/src/dataProvider/useUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,5 +551,5 @@ export type UseUpdateResult<
ErrorType,
Partial<UpdateParams<RecordType> & { resource?: string }>,
unknown
>,
> & { isLoading: boolean },
];
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const SuccessCore = () => {
);
setNotification(true);
};

return (
<>
<dl>
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-core/src/dataProvider/useUpdateMany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,5 +523,5 @@ export type UseUpdateManyResult<
MutationError,
Partial<UpdateManyParams<Partial<RecordType>> & { resource?: string }>,
unknown
>,
> & { isLoading: boolean },
];

0 comments on commit 45151e0

Please sign in to comment.