react-code-dataset / recharts /src /state /ReportChartProps.tsx
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
357 Bytes
import { useEffect } from 'react';
import { updateOptions, UpdatableChartOptions } from './rootPropsSlice';
import { useAppDispatch } from './hooks';
export function ReportChartProps(props: UpdatableChartOptions): null {
const dispatch = useAppDispatch();
useEffect(() => {
dispatch(updateOptions(props));
}, [dispatch, props]);
return null;
}