Open andresgutgon opened 1 year ago
As a second question I saw now in master
is possible to avoid using autoResize
https://github.com/hustcc/echarts-for-react/blob/master/src/core.tsx#L155
Do you have an estimate when a new version with this change will be published?
Sorry for the noise. I just found the issue 😂
I was passing width
and height
to opts
and that was making the chart to be disposed each time I resize the chart.
So instead of this
<EChart opts={{ width, height }} />
I do this now:
<EChart style={{ width, height }} />
Again sorry for the noise
It's me again sorry. I though I fixed the issue with that change but continue watching the Error/warning
Now the warning does not occur on each resize but keep happening when unmounting the component
What?
Hi, we're using this package and when we unmount the component that is using it we get this warning. Looks related with
size-sensor
not havingResizeObserver
defined when unmounting.This is how we're using it
The Error/Warning