@hitachivantara/uikit-react-core
Version:
UI Kit Core React components.
17 lines (16 loc) • 392 B
JavaScript
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 };