maslianok / react-resize-detector

A Cross-Browser, Event-based, Element Resize Detection for React
http://maslianok.github.io/react-resize-detector/
MIT License
1.25k stars 91 forks source link

Add support for leading/trailing option for throttle and debounce. #57

Closed Biohazord closed 5 years ago

Biohazord commented 5 years ago

Would you be interested in a PR to add an additional prop for the leading/trailing options for Lodash's throttle/debounce function? If yes, I can whip something up.

maslianok commented 5 years ago

Hi @Biohazord Thanks for the suggestion!

Deployed in v3.3.1 Added refreshOptions prop:

{ leading: bool, trailing: bool }