Skip to content
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

useInfiniteScroll: 未进行竞态处理,丢失了useRequest的竞态处理能力 #2676

Open
johnwojtek opened this issue Nov 18, 2024 · 1 comment

Comments

@johnwojtek
Copy link

在传给useRequest的异步函数中,传给useInfiniteScroll的service有结果后,就进行了setState状态更新。导致useRequest的竞态处理无效,不需要的数据也会被更新。

@xmsz-stu
Copy link

xmsz-stu commented Nov 20, 2024

+1,比如reloadDeps变化了,前一次请求比最新的慢,就会导致data设置有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants