UNPKG

@hitachivantara/uikit-react-core

Version:
17 lines (16 loc) 392 B
import { useQueryBuilderContext } from "../Context.js"; import { useEffect } from "react"; //#region src/QueryBuilder/Value/EmptyValue.tsx var EmptyValue = ({ id }) => { const { dispatchAction } = useQueryBuilderContext(); useEffect(() => { dispatchAction({ type: "set-value", id, value: null }); }, [dispatchAction, id]); return null; }; //#endregion export { EmptyValue };