Skip to content

Commit

Permalink
removing forwardLegendDataRef from hook dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ZombieChowder11 committed May 16, 2024
1 parent da6d6b7 commit da47a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pie/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const usePieArcs = <RawDatum>({
useEffect(() => {
if (typeof forwardLegendDataRef.current !== 'function') return
forwardLegendDataRef.current(legendData)
}, [forwardLegendDataRef, legendData])
}, [legendData])

return result
}
Expand Down

0 comments on commit da47a08

Please sign in to comment.