A Cross-Browser, Event-based, Element Resize Detection for React
useResizeObserver
hook onlyFull Changelog: https://github.com/maslianok/react-resize-detector/compare/v10.0.0-beta.1...v10.0.0-beta.2
.current
set by using a proxy by @hugo-vrijswijk in https://github.com/maslianok/react-resize-detector/pull/249
ChildFunctionProps
type exportFull Changelog: https://github.com/maslianok/react-resize-detector/compare/v9.1.1...v10.0.0-beta.1
.current
set by using a proxy by @hugo-vrijswijk in https://github.com/maslianok/react-resize-detector/pull/249
Full Changelog: https://github.com/maslianok/react-resize-detector/compare/v9.1.1...v9.1.2
We've streamlined the library by eliminating all methods except hooks.
Starting from this version the useResizeObserver
hook is the only way to attach the observer.
useResizeDetector
in React StrictMode #247useResizeDetector
performance optimization and refactoring.
No API changes.
This version introduces a new logic for the useResizeDetector
hook.
The hook now stores the ref
in the internal state, allowing us to handle ref
changes.
There should be no breaking changes.
Now it's safe to delete refreshMode="debounce" refreshRate={0}
props that many of you used as a workaround.
Full Changelog: https://github.com/maslianok/react-resize-detector/compare/v8.0.3...v8.0.4
Remove console.log 🤷♂️