Skip to content

Releases: roderickhsiao/react-in-viewport

v1.0.0-alpha.20

28 Oct 16:24
d9b3575
Compare
Choose a tag to compare

Improve type definition #95, fixed #94

Prevent memory leak on unmount

29 Jul 23:56
Compare
Choose a tag to compare

React ref is mutable, which might cause issue that the ref has been set to null after unmount, but intersection observer are not removed.

Add Typescript definition

03 Jun 04:33
Compare
Choose a tag to compare

Thanks @lencse for adding Type definition

#87

Remove hard requirement on npm

26 Jun 00:51
Compare
Choose a tag to compare

Remove npm requirement

26 Jun 00:51
Compare
Choose a tag to compare

#33 We don't need to have hard requirement on npm

Fix conflicted variable

03 Dec 20:43
e4855b5
Compare
Choose a tag to compare

Extends from Component

29 Nov 21:38
Compare
Choose a tag to compare

Originally this HOC is extending PureComponent, but lots of case the props passed in are nested object which makes this component compute unnecessary props differences on update.

Decide to let parent/child component to handle should component update. #8

Correct isStateless logic

10 Oct 21:03
Compare
Choose a tag to compare

#7 update logic to identify stateless component, thanks @jamiees2

Support enter/leave viewport count

17 Aug 18:40
Compare
Choose a tag to compare

thanks to @matt-malone #6

This release starts to pass enterCount and leaveCount as a props to the component.

Publish es module

24 Apr 05:04
Compare
Choose a tag to compare
0.0.22

Publish es module