A React hook that allows you to use a ResizeObserver to measure an element's size.
This was an accidental release, and an equivalent of V8.
The breaking change is the replacement of resize-observer-polyfill by @juggle/resize-observer for the polyfillled module.
See the v8 release notes.
onResize
callback is no longer incorrectly called with the same values. (bd0f3c8)box
option (0ca6c23), closes #31 #57
round
option. (aa38199), closes #55 #46 #61
resize-observer-polyfill
in favour of @juggle/resize-observer
. (8afc8f6)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.