Skip to content

Releases: wellyshen/react-cool-dimensions

v3.0.1

08 Mar 17:07
Compare
Choose a tag to compare

Fix the type of the width and height states #775

v3.0.0

26 Nov 13:27
Compare
Choose a tag to compare

💥 BREAKING CHANGE

  • Initial width and height now are null, see doc. Thanks to @sirkrisp

v2.0.7

08 Jun 16:20
Compare
Choose a tag to compare

v2.0.6

19 May 12:45
Compare
Choose a tag to compare
  • Refactor(types): enhance the types of event properties (#477)

v2.0.5

18 May 05:25
Compare
Choose a tag to compare
  • Refactor(types): export more types to fulfill your use cases ( #474 )

v2.0.4

09 May 14:12
Compare
Choose a tag to compare
  • Refactor(types): simplify generic variable
-  const { observe } = useDimensions<HTMLDivElement | null>();
+  const { observe } = useDimensions<HTMLDivElement>();

v2.0.3

27 Apr 10:19
Compare
Choose a tag to compare
  • Fix: avoid extra re-rendering

v2.0.2

26 Apr 09:43
Compare
Choose a tag to compare

v2.0.1

05 Apr 07:49
Compare
Choose a tag to compare

Fix: un-observe the previous target element when updating the new target element via the observe API

v2.0.0

03 Apr 10:32
Compare
Choose a tag to compare

✌🏻 React Cool Dimensions V2 comes out!

  • Remove ref API, use observe instead, see this example
  • Remove ref option, if you want to share a ref see this example
  • Smaller bundle size, around 1kB gzipped
  • Fix the type of exported hook function