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
- extremely lightweight and zero dependencies -- adds **1.9kb** after gzip.
14
+
- extremely lightweight and zero dependencies -- adds **2kb** after gzip.
15
15
- only one `window.onresize` handler used to subscribe to any changes in an unlimited number of components no matter the use-cases.
16
16
- 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.
17
17
- debouncing does not create new handlers or waste re-renders in your component; the results are also pooled from only one resize result.
18
18
- optional hash function to update component subtree only at points you would like to.
19
-
- supports SSR (see example under Usage section).
19
+
- supports lazy loaded components and SSR out of the box (see example SSR under Usage section).
20
20
21
21
22
22
## Usage ##
@@ -154,7 +154,7 @@ function MySSRComponent (props) {
154
154
```
155
155
156
156
## Support
157
-
If you have read the examples and have any issues which you know are glitches,or would like to request something changed, please feel free to [post an issue on Github](https://github.com/rob2d/use-viewport-sizes/issues/new).
157
+
If you find any issues or would like to request something changed, please feel free to [post an issue on Github](https://github.com/rob2d/use-viewport-sizes/issues/new).
158
158
159
159
Otherwise, if this was useful and you'd like to show your support, no donations necessary, but please consider [checking out the repo](https://github.com/rob2d/use-viewport-sizes) and giving it a star (⭐).
0 commit comments