use-resize-observer
Advanced tools
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.