Releases: wellyshen/react-cool-inview
Releases · wellyshen/react-cool-inview
v3.0.1
17 Apr 09:39
Compare
Sorry, something went wrong.
No results found
Fix: expose InView type (#792 )
v3.0.0
06 Apr 13:35
Compare
Sorry, something went wrong.
No results found
💥 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
Sorry, something went wrong.
No results found
Fix: only setState when active/mounted (#736 )
v2.0.8
22 Oct 03:27
Compare
Sorry, something went wrong.
No results found
Fix: correct the type of root (#672 ).
v2.0.7
19 May 13:02
Compare
Sorry, something went wrong.
No results found
Refactor(types): enhance the types of event properties (#561 )
v2.0.6
18 May 05:30
Compare
Sorry, something went wrong.
No results found
Refactor(types): export more types to fulfill your use cases (#558 )
v2.0.5
09 May 14:05
Compare
Sorry, something went wrong.
No results found
Refactor(types): simplify generic variable
- const { observe } = useInView<HTMLDivElement | null>();
+ const { observe } = useInView<HTMLDivElement>();
v2.0.4
27 Apr 10:19
Compare
Sorry, something went wrong.
No results found
Fix: infinite re-rendering (#521 ) (#520 )
v2.0.3
06 Apr 00:57
Compare
Sorry, something went wrong.
No results found
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
Sorry, something went wrong.
No results found
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 )