hooks
hooks copied to clipboard
feat: support userInfiniteScroll use forcedLoadMore to keep requestin…
…g when data is no more
🤔 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
- user need ability to keep requesting when scroll list's data is no more
- 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
需要补一下文档和单测哈