use-resize-observer
Advanced tools
Changelog
Changelog
8.0.0 (2021-08-28)
onResize
callback is no longer incorrectly called with the same values. (bd0f3c8)box
option (0ca6c23), closes #31 #57round
option. (aa38199), closes #55 #46 #61resize-observer-polyfill
in favour of @juggle/resize-observer
. (8afc8f6)Changelog
7.0.0 (2020-11-11)
null
or undefined as the
ref, or if neither the default ref or RefCallback returned from the hook are
in use, then no ResizeObserver instance will get created until there's an
actual element to observe. Resolves: #42ref
option now accepts raw elements as well.callbackRef
return value anymore.useResolvedElement
hook), to handle more edge cases with the way refs are handled.