diff --git a/packages/pie/src/hooks.ts b/packages/pie/src/hooks.ts index 5fdb669cd..63a0bb606 100644 --- a/packages/pie/src/hooks.ts +++ b/packages/pie/src/hooks.ts @@ -180,7 +180,7 @@ export const usePieArcs = ({ useEffect(() => { if (typeof forwardLegendDataRef.current !== 'function') return forwardLegendDataRef.current(legendData) - }, [forwardLegendDataRef, legendData]) + }, [legendData]) return result }