Add enabled
parameter to useResizeObserver
hook
#170
Labels
question
Further information is requested
enabled
parameter to useResizeObserver
hook
#170
I don't think this param will be used very often but want to know if we think we need it. I don't know if I like a 4th parameter for the hook function signature. I think it's fine to just do an early return in the callback.
Implementation will be similar to this:
Originally posted by @leroykorterink in #158 (comment)
Solution with enabled parameter
Solution using early return
The text was updated successfully, but these errors were encountered: