Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove defaultValue from useMemo dependency array since it is no long…
…er used in the useMemo
  • Loading branch information
andrewserong committed Nov 30, 2021
commit 5f96fc8ce8b587297a6b47795ae654835ed91b68
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