hooks icon indicating copy to clipboard operation
hooks copied to clipboard

fix: useInfiniteScroll request race

Open johnwojtek opened this issue 1 year ago • 1 comments

[中文版模板 / Chinese template]

🤔 This is a ...

  • [ ] New feature
  • [*] Bug fix
  • [ ] Site / documentation update
  • [ ] Demo update
  • [ ] TypeScript definition update
  • [ ] Bundle size optimization
  • [ ] Performance optimization
  • [ ] Enhancement feature
  • [ ] Internationalization
  • [ ] Refactoring
  • [ ] Code style optimization
  • [ ] Test Case
  • [ ] Branch merge
  • [ ] Other (about what?)

🔗 Related issue link

useInfiniteScroll中使用useRequest传入的service函数不pure,导致有额外副作用,在useRequest处理竞态之前触发了副作用,导致竞态处理失效。

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • [ ] Doc is updated/provided or not needed
  • [ ] Demo is updated/provided or not needed
  • [ ] TypeScript definition is updated/provided or not needed
  • [ ] Changelog is provided or not needed

johnwojtek avatar Nov 21 '24 07:11 johnwojtek

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


jiangxiong seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Nov 21 '24 07:11 CLAassistant

已经合了一个,这个先关了

crazylxr avatar Aug 17 '25 12:08 crazylxr