Skip to content

Commit 887c57e

Browse files
committed
fix(geo): add missing dependency for legend data memoization
1 parent ae62116 commit 887c57e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/geo/src/hooks.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ export const useChoropleth = ({
123123
return format(valueFormat)
124124
}, [valueFormat])
125125

126-
const colorScale = useMemo(() => guessQuantizeColorScale(colors).domain(domain), [colors])
126+
const colorScale = useMemo(() => guessQuantizeColorScale(colors).domain(domain), [
127+
colors,
128+
domain,
129+
])
127130
const getFillColor = useMemo(() => {
128131
return feature => {
129132
if (feature.value === undefined) return unknownColor

0 commit comments

Comments
 (0)