Skip to content

Commit

Permalink
Update mutations results types to include isLoading
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Jul 5, 2024
1 parent 0379c39 commit 2c77786
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 2c77786

Please sign in to comment.