Open slaweet opened 2 years ago
Why there is a v-resize:debounce.100="onResize"
and not only a :responsive="true"
?
Why there is a
v-resize:debounce.100="onResize"
and not only a:responsive="true"
?
@aurium What do you mean exactly by your suggestion? Just plain replacing v-resize:debounce.100="onResize"
with :responsive="true"
makes no sense to me as the former is processed by https://www.npmjs.com/package/vue-resize-directive whereas for the latter there's no implementation of what does the attribute do.
Moreover, with no debounce a page can become unresponsive for a long time when you drag window edge to resize the browser window and there are many complex charts on the page.
I'm getting this error randomly:
My guess is that it's because https://github.com/David-Desmaisons/vue-plotly/blob/024f579788c469cde9d4aaa23022cf8883f3cac3/src/components/Plotly.vue#L2 has the debounce and https://github.com/David-Desmaisons/vue-plotly/blob/024f579788c469cde9d4aaa23022cf8883f3cac3/src/components/Plotly.vue#L82-L84 doesn't check if the component wasn't unmounted in the meantime.