UNPKG

@hitachivantara/uikit-react-core

Version:

Core React components for the NEXT Design System.

17 lines (16 loc) 358 B
import { useEffect } from "react"; import { useQueryBuilderContext } from "../../../Context.js"; const EmptyValue = ({ id }) => { const { dispatchAction } = useQueryBuilderContext(); useEffect(() => { dispatchAction({ type: "set-value", id, value: null }); }, [dispatchAction, id]); return null; }; export { EmptyValue };