@hitachivantara/uikit-react-core
Version:
Core React components for the NEXT Design System.
17 lines (16 loc) • 358 B
JavaScript
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
};