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

Passing options to withResizeDetector? #96

Closed michaelcuneo closed 4 years ago

michaelcuneo commented 4 years ago

In other with[something] HOC's I can pass options to it using something like ...

export default withResizeDetector(App, {
  refreshMode: "throttle",
  refreshRate: 500,
})

This kind of thing doesn't appear to work with react-resize-detector... any ideas?

michaelcuneo commented 4 years ago

Sorry, my mistake, it works fine. I did something wrong on my end.