Skip to content

Commit 3ddcc80

Browse files
committed
Mark useDeleteWithUndoController and useDeleteWithConfirmController as deprecated
1 parent c1e4bea commit 3ddcc80

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/ra-core/src/controller/button/useDeleteWithConfirmController.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { useEvent } from '../../util';
1414

1515
/**
1616
* Prepare a set of callbacks for a delete button guarded by confirmation dialog
17+
* @deprecated prefer the useDeleteController hook instead
1718
*
1819
* @example
1920
*

packages/ra-core/src/controller/button/useDeleteWithUndoController.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { useEvent } from '../../util';
1010

1111
/**
1212
* Prepare callback for a Delete button with undo support
13-
*
13+
* @deprecated prefer the useDeleteController hook instead
1414
* @example
1515
*
1616
* import React from 'react';

0 commit comments

Comments
 (0)