We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34973a0 commit 44c5259Copy full SHA for 44c5259
packages/ra-ui-materialui/src/button/DeleteButton.tsx
@@ -101,8 +101,13 @@ export type DeleteButtonProps<
101
MutationOptionsError = unknown,
102
> = SaveContextValue &
103
(
104
- | DeleteWithUndoButtonProps<RecordType, MutationOptionsError>
105
- | DeleteWithConfirmButtonProps<RecordType, MutationOptionsError>
+ | ({ mutationMode?: 'undoable' } & DeleteWithUndoButtonProps<
+ RecordType,
106
+ MutationOptionsError
107
+ >)
108
+ | ({
109
+ mutationMode?: 'pessimistic' | 'optimistic';
110
+ } & DeleteWithConfirmButtonProps<RecordType, MutationOptionsError>)
111
);
112
113
const PREFIX = 'RaDeleteButton';
0 commit comments