Skip to content

Releases: wellyshen/react-cool-inview

v3.0.1

17 Apr 09:39
Compare
Choose a tag to compare
  • Fix: expose InView type (#792)

v3.0.0

06 Apr 13:35
Compare
Choose a tag to compare

💥 Breaking Change

  • Use named export instead of default export to import the hook.
- import useInView from "react-cool-inview";
+ import { useInView } from "react-cool-inview";

✨ New Feature

  • Supports InView component, see the example to learn more (thanks to @max-sym)

v2.0.9

03 Feb 16:57
Compare
Choose a tag to compare
  • Fix: only setState when active/mounted (#736)

v2.0.8

22 Oct 03:27
Compare
Choose a tag to compare
  • Fix: correct the type of root (#672).

v2.0.7

19 May 13:02
Compare
Choose a tag to compare

Refactor(types): enhance the types of event properties (#561)

v2.0.6

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

v2.0.5

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

v2.0.4

27 Apr 10:19
Compare
Choose a tag to compare
  • Fix: infinite re-rendering (#521) (#520)

v2.0.3

06 Apr 00:57
Compare
Choose a tag to compare
  • Fix: the values of the scrollDirection will sync with the scrolling direction of the viewport, see doc (#499)

v2.0.2

05 Apr 07:48
Compare
Choose a tag to compare
  • Fix: align the values of the scrollDirection with the direction of the viewport (#499)
  • Fix: un-observe the previous target element when updating the new target element via the observe API (#500)