Skip to content

Error 'setoption' should not be called during main process #402

@vortesnail

Description

@vortesnail

作者你好,在使用 echarts-for-react 时切换路由时,数据渲染过于频繁时会出现以下报错:

Error 'setoption' should not be called during main process

经过查询,解决方案是在 setOption 之前调用一次实例的 .clear() 即可,或者采用定时器延迟 .setOption

但是通过阅读作者的源码后发现没有这样的钩子,可否简单加一下这样的钩子呢?

辛苦~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions