question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version

5.1.2

Steps to reproduce

  1. vue 3.0
  2. onMounted(() => { window.addEventListener(‘resize’, () => { echarts.resize() }) })
  3. change window’s width

What is expected?

echarts to resize on window resize

What is actually happening?

error: resize` should not be called during main process

example link

https://codesandbox.io/s/quizzical-mahavira-3gvst?file=/src/App.vue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
plainheartcommented, Jun 28, 2021

Instead of ref, please try to use shallowRef to contain the echarts instance.

1reaction
pissangcommented, Jun 29, 2021

For performance reasons. Any third-party instances, not only echarts, should not use ref in vue3. There is no reason to deep watch the properties inside a third-party instance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"error: (-215:Assertion failed) func != 0 in function 'resize ...
I'm stuck with this problem too. This is the first time I found opencv function receive only float data, but why? And I...
Read more >
Troubleshoot Image Resizing problems - Cloudflare Support
Follow these steps to troubleshoot the most common issues with Image Resizing. Requests without resizing enabled Error responses from...
Read more >
recovery of disks or volumes fails with "Resize error"
Symptoms. You have a disk-level backup (of entire machine, individual disks or volumes) and try to restore this backup. Restore fails with:
Read more >
Resize Pictures\Image Resizer Error - Too Much MetaData ...
Pop up Message Can't resize the following pictures." Commit unsuccessful because too much metadata changed." occurs so must go back and edit ...
Read more >
APFS Container Resizing Issues 49153 - Apple Developer
Running into strange error when attempting to resize a APFS container. Example APFS container is currently 499g with 161g free. Attempted to resize...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found