You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ npm install -D use-viewport-sizes
9
9
```
10
10
11
11
## Benefits
12
-
- extremely lightweight and dependency-free; **2.8kb pre-gzipped** with all dependencies.
12
+
- extremely lightweight and dependency-free; **2.54kb pre-gzipped** with all dependencies.
13
13
- only one `window.onresize` handler used to subscribe to any changes in an unlimited number of components.
14
14
- optional debounce to delay updates until user stops dragging their window for a moment; this can make expensive components with size-dependent calculations run much faster and your app feel smoother.
15
15
- debouncing does not create new handlers or waste re-renders in your component; the results are also pooled from only one resize result.
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "use-viewport-sizes",
3
-
"version": "0.1.8",
3
+
"version": "0.1.9",
4
4
"description": "tiny React hook which allows you to track visible window viewport size in your components w/ an optional debounce for updates for optimal rendering.",
0 commit comments