Skip to main content

useReactDndWarning()

useReactDndWarning(enableDragAndDrop: boolean, dndRefs: boolean): void

Defined in: packages/react-querybuilder/src/hooks/useReactDndWarning.ts:9

Logs a warning if drag-and-drop is enabled but the required dependencies (react-dnd and react-dnd-html5-backend) were not detected.

Parameters

ParameterType
enableDragAndDropboolean
dndRefsboolean

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.