@react-hook/resize-observer
Advanced tools
Comparing version 0.0.2 to 1.0.0
{ | ||
"name": "@react-hook/resize-observer", | ||
"version": "0.0.2", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/resize-observer#readme", | ||
@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/react-hook", |
@@ -40,4 +40,4 @@ <hr> | ||
[This approach is astoundingly more performant](https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/z6ienONUb5A/F5-VcUZtBAAJ) | ||
than using an `ResizeObserver` per element, as most hook implementations do. | ||
- [x] Uses [`resize-observer-polyfill`] as a ponyfill when `ResizeObserver` isnt' supported | ||
than using a `ResizeObserver` per element which most hook implementations do. | ||
- [x] Uses [`resize-observer-polyfill`](https://github.com/que-etc/resize-observer-polyfill) as a ponyfill when `ResizeObserver` isnt' supported | ||
by the current browser. | ||
@@ -65,3 +65,2 @@ - [x] Automatically unobserves the target element when the hook unmounts. | ||
useResizeObserver(target, (entry) => setSize(entry.contentRect)) | ||
return size | ||
@@ -68,0 +67,0 @@ } |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
19283
0
108