Closed softmarshmallow closed 2 years ago
Yep, there's no onFinishResize
or anything like that.
If your problem is you want to avoid the onResize
being called lots of times in a row while resizing, you can do
useResizeDetector({
onResize,
refreshMode: 'debounce',
refreshRate: 300
})
or something like that.
Yep, there's no
onFinishResize
or anything like that.If your problem is you want to avoid the
onResize
being called lots of times in a row while resizing, you can douseResizeDetector({ onResize, refreshMode: 'debounce', refreshRate: 300 })
or something like that.
Correct! Thank you 👍
I'm trying to make an optimization logic for render heavy component, only to show while its container is not resizing.
I'm able to trigger start resize event with onResize, but I don't see a feature to listen
onFinishResize
oronEndResize
Cheers!