Removed log

shahanneda/create-component-wrapper
Shahan Nedadahandeh 8 months ago
parent 7efe878e9e
commit 3e19501003
Signed by: snedadah
GPG Key ID: 8638C7F917385B01
  1. 2
      components/WordCloud.tsx

@ -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

Loading…
Cancel
Save