@hitachivantara/uikit-react-core
Version:
Core React components for the NEXT Design System.
17 lines (16 loc) • 451 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const React = require("react");
const Context = require("../../../Context.cjs");
const EmptyValue = ({ id }) => {
const { dispatchAction } = Context.useQueryBuilderContext();
React.useEffect(() => {
dispatchAction({
type: "set-value",
id,
value: null
});
}, [dispatchAction, id]);
return null;
};
exports.EmptyValue = EmptyValue;