Releases: roderickhsiao/react-in-viewport
Releases · roderickhsiao/react-in-viewport
v1.0.0-alpha.21
What's Changed
- Re-write library in Typescript
- Update storybook syntax
- Migrate to Github action
- Bump url-parse from 1.5.3 to 1.5.7 by @dependabot in #98
- Bump simple-get from 3.1.0 to 3.1.1 by @dependabot in #99
- Bump ajv from 6.12.2 to 6.12.6 by @dependabot in #97
- Bump url-parse from 1.5.7 to 1.5.10 by @dependabot in #100
Full Changelog: 1.0.0-alpha.20...1.0.0-alpha.21
v1.0.0-alpha.20
Prevent memory leak on unmount
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
Remove hard requirement on npm
Remove npm requirement
#33 We don't need to have hard requirement on npm
Fix conflicted variable
Extends from Component
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
Support enter/leave viewport count
thanks to @matt-malone #6
This release starts to pass enterCount
and leaveCount
as a props to the component.