-
Notifications
You must be signed in to change notification settings - Fork 131
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: prevent multiply calls of render function #768
Conversation
Codecov Report
@@ Coverage Diff @@
## main #768 +/- ##
=======================================
Coverage 91.64% 91.65%
=======================================
Files 191 191
Lines 5866 5869 +3
Branches 1404 1405 +1
=======================================
+ Hits 5376 5379 +3
Misses 484 484
Partials 6 6
Continue to review full report at Codecov.
|
Co-authored-by: Ziv <[email protected]>
Co-authored-by: Ziv <[email protected]>
Co-authored-by: Ziv <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
简介
主要原因分析
本地无法复现的原因可能是 react 还是 16.x 的版本导致的,后面需要升级本地的 react 版本。这里的问题是因为
const App = () => moInstance.render(<Workbench />);
如上代码, App 组件因为某种原因重渲染,导致多次执行 moInstance.render 函数Related Issues
Closed #767
遗留问题