能不能增加一个batch update的hook? #1895
lovetingyuan
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
|
在 React 18 中,这种情况下已经会合并只有一次 rerender 了。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
用 react-dom 提供的 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在不使用
createRoot的情况下可以减少组件 re-render 次数Beta Was this translation helpful? Give feedback.
All reactions