Skip to content

Commit

Permalink
修复 WaterLevelPond 组件陷入死循环问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhiyuyou committed Apr 10, 2020
1 parent e1e19b3 commit 929ba47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/waterLevelPond/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ const WaterLevelPond = ({ config, className, style }) => {
return () => {
innerRenderer.delAllGraph()

// 处理 renderer.launchAnimation 返回 undefined,导致长时间占用主线程(待 cender 下版本,处理后删除下面代码)
innerRenderer.graphs.forEach(_ => _.pauseAnimation())
innerRenderer.animationStatus = false

undescribe()
}
}, [mergedConfig])
Expand Down

0 comments on commit 929ba47

Please sign in to comment.