Skip to content

Commit

Permalink
Remove defaultValue from useMemo dependency array since it is no long…
Browse files Browse the repository at this point in the history
…er used in the useMemo
  • Loading branch information
andrewserong committed Nov 30, 2021
1 parent c1e3398 commit b0694bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/color-picker/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const ColorPicker = (

const safeColordColor = useMemo( () => {
return colord( color );
}, [ color, defaultValue ] );
}, [ color ] );

const debouncedSetColor = useDebounce( setColor );

Expand Down

0 comments on commit b0694bb

Please sign in to comment.