useUndoRedoWarning()
useUndoRedoWarning(
showUndoRedo:boolean,hasUndoRedoControls:boolean):void
Defined in: packages/react-querybuilder/src/hooks/useUndoRedoWarning.ts:12
Logs a warning if the showUndoRedo prop is enabled but no undo/redo controls are available,
which generally means the query builder was not wrapped in the QueryBuilderHistory component
from react-querybuilder/history.
Parameters
| Parameter | Type |
|---|---|
showUndoRedo | boolean |
hasUndoRedoControls | boolean |
Returns
void
caution
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.