hooks icon indicating copy to clipboard operation
hooks copied to clipboard

feat(useSize): support debounceOptions and throttleOptions(#2647)

Open tchen-l opened this issue 1 year ago • 2 comments
trafficstars

[中文版模板 / Chinese template]

🤔 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

#2647

💡 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

tchen-l avatar Oct 08 '24 11:10 tchen-l

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 08 '24 11:10 CLAassistant

感谢你的 pr,不过这种方式可能不是我期望的增加防抖节流的方式,未来是 https://github.com/alibaba/hooks/issues/2638 类似这个 issue 里面讨论的,是一种 hook 与 防抖 节流组合的方式增加防抖 节流的功能

crazylxr avatar Oct 14 '24 01:10 crazylxr