We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在更新State为相同数据后,组件因为其他State/Props进行re-render时,useDeepCompareEffect会一直进行深度对比,导致严重的性能问题(因为真实数据层级较多)。
DEMO: https://codesandbox.io/p/sandbox/use-deep-compare-effect-t9f984?file=%2Fsrc%2FApp.tsx%3A31%2C5
复现步骤: 1、初始化页面 2、重新设置data为相同数据 3、设置其他state,重新渲染页面时,打开控制台,可以看到会进行data的深度对比
cc @caorushizi
The text was updated successfully, but these errors were encountered:
fix: resolves depsEqual performance issues (alibaba#2577)
31932c6
fix: resolves depsEqual performance issues (#2577) (#2578)
d92f995
No branches or pull requests
在更新State为相同数据后,组件因为其他State/Props进行re-render时,useDeepCompareEffect会一直进行深度对比,导致严重的性能问题(因为真实数据层级较多)。
DEMO: https://codesandbox.io/p/sandbox/use-deep-compare-effect-t9f984?file=%2Fsrc%2FApp.tsx%3A31%2C5
复现步骤:
1、初始化页面
2、重新设置data为相同数据
3、设置其他state,重新渲染页面时,打开控制台,可以看到会进行data的深度对比
cc @caorushizi
The text was updated successfully, but these errors were encountered: