|
|
|
@ -61,7 +61,6 @@ export const WordCloud = withTooltip( |
|
|
|
|
hideTooltip, |
|
|
|
|
} = useTooltip<WordData>(); |
|
|
|
|
|
|
|
|
|
console.log("got width", width); |
|
|
|
|
return ( |
|
|
|
|
<div className={className}> |
|
|
|
|
<WordCloudWordsMemoized |
|
|
|
@ -205,7 +204,6 @@ const shouldNotRerender = ( |
|
|
|
|
nextProps.tooltipLeft === undefined || |
|
|
|
|
nextProps.tooltipTop === undefined) |
|
|
|
|
) { |
|
|
|
|
console.log("widths ", prevProps.width, nextProps.width); |
|
|
|
|
return true; // do not re-render
|
|
|
|
|
} |
|
|
|
|
return false; // will re-render
|
|
|
|
|