hooks icon indicating copy to clipboard operation
hooks copied to clipboard

feat: support userInfiniteScroll use forcedLoadMore to keep requestin…

Open bbb169 opened this issue 1 year ago • 2 comments

…g when data is no more

[中文版模板 / Chinese template]

🤔 This is a ...

  • [x] 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

https://github.com/alibaba/hooks/issues/2180

💡 Background and solution

  1. user need ability to keep requesting when scroll list's data is no more
  2. add an new props named forcedLoadMore, when this value is set true, user scroll list to bottom will cause request again

📝 Changelog

Language Changelog
🇺🇸 English add new props forcedLoadMore and new returned result trulyNoMore
🇨🇳 Chinese 添加新参数 forcedLoadMore和返回结果增加参数 trulyNoMore

☑️ Self Check before Merge

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

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

bbb169 avatar Sep 04 '24 15:09 bbb169

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 04 '24 15:09 CLAassistant

需要补一下文档和单测哈

crazylxr avatar Sep 22 '24 02:09 crazylxr