Use Viewport Sizes Versions Save

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.7.2

7 months ago
  • Adds unit tests (85% branch coverage, 99% line coverage) and badge to README
  • Updates outdated parameters on README for debounce example.

0.7.0

9 months ago
  • Removes error in SSR server side for missing useLayoutEffect hook (#30 )
  • Address possible issues with type declarations.

Thanks to @micah-redwood for the PR to address SSR logging on this update!

0.6.1

1 year ago

This release just addresses UX issues with repo for NPM sake.

  • Create LICENSE file to populate on GitHub (#29)
  • fix badge links in README (#28)

(Thanks to @JaxonWright for the PRs!)

v0.6.0

1 year ago
  • auto trigger listeners after the first added for lazy-loaded component support out of the box
  • deprecate @babel/preset-react since there are no JSX transforms required

v0.5.0

1 year ago
  • fixed support for certain Typescript annotations (thanks to @monkeycoder99 for reporting issues)
  • bump React peerDep support to v16 | v17 | v18

v0.2.12

3 years ago

🧾 Add Typescript Support

v0.2.5

5 years ago
  • fix uncaught issues caused by SSR update on client side.
  • simplify and optimize implementation.
  • smaller dist file size (~2.59kb â–º 2.25kb)

v0.2.3

5 years ago
  • fix import issue from v0.2.0

v0.2.0

5 years ago
  • Support SSR (thanks to @charlie632 for example + reporting that!)