hooks
hooks copied to clipboard
feat(useHistoryTravel): add manual update option
🤔 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
resolve: https://github.com/alibaba/hooks/issues/2272
💡 Background and solution
需要手动的提交历史记录。为了更好的兼容性,没有改变 maxLength 的传递方式, 本地跑了我自己写的测试,运行后没有看到 dome4 的效果。
📝 Changelog
| Language | Changelog |
|---|---|
| 🇺🇸 English | |
| 🇨🇳 Chinese |
☑️ 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
- [ ] Changelog is provided or not needed
第二个参数处理成 options 和我的想法完全一致,秀哦~,review 了一部分,剩下的回头有空再继续看