hooks
hooks copied to clipboard
feat(useSize): support debounceOptions and throttleOptions(#2647)
trafficstars
🤔 This is a ...
- [ ] New feature
- [ ] Bug fix
- [x] Site / documentation update
- [x] Demo update
- [x] TypeScript definition update
- [ ] Bundle size optimization
- [ ] Performance optimization
- [x] Enhancement feature
- [ ] Internationalization
- [ ] Refactoring
- [ ] Code style optimization
- [x] Test Case
- [x] Branch merge
- [ ] Other (about what?)
🔗 Related issue link
💡 Background and solution
useSize 添加防抖和节流参数
📝 Changelog
| Language | Changelog |
|---|---|
| 🇺🇸 English | support debounceOptions and throttleOptions |
| 🇨🇳 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
- [x] Changelog is provided or not needed
感谢你的 pr,不过这种方式可能不是我期望的增加防抖节流的方式,未来是 https://github.com/alibaba/hooks/issues/2638 类似这个 issue 里面讨论的,是一种 hook 与 防抖 节流组合的方式增加防抖 节流的功能