Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): avoid error in render breaks following update #16395

Merged
merged 2 commits into from
Jan 20, 2022

Conversation

pissang
Copy link
Contributor

@pissang pissang commented Jan 20, 2022

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

We use a flag to check if there are unexpected update during another update, which may cause chaos like infinite loop. But currently if there are exceptions during update, the flag will not be cleared and this check keeps fail in the following update. For example if error happens in the callback.

This PR handles exceptions during update to avoid following setOption or resize fails.

Fixed issues

#15280

@echarts-bot
Copy link

echarts-bot bot commented Jan 20, 2022

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

The pull request is marked to be PR: author is committer because you are a committer of this project.

src/core/echarts.ts Outdated Show resolved Hide resolved
Copy link
Member

@100pah 100pah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pissang pissang merged commit f4c3049 into release Jan 20, 2022
@echarts-bot
Copy link

echarts-bot bot commented Jan 20, 2022

Congratulations! Your PR has been merged. Thanks for your contribution! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants