Releases: Merri/react-lazy
Releases · Merri/react-lazy
v1.0.3
[1.0.3] - 2018-06-13
Changed
- Now uses
@researchgate/react-intersection-observer
instead of customized implementation
Fixed
- Case where
viewport
andthreshold
were not passed toObserver
inLazy
[1.0.2] - 2018-05-31
Changed
- Size of final generated JavaScript has been reduced
- Minor code speed optimizations
Removed
DefaultWrapper
andLazyChild
are no longer exported
v1.0.1
v1.0.0
Added
Observer
componentthreshold
prop toLazy
andLazyGroup
viewport
prop toLazy
andLazyGroup
which works likeroot
of IntersectionObserver
Changed
cushion
prop works now likemarginRoot
of IntersectionObserverjsOnly
prop is nowclientOnly
- Viewport detection to use IntersectionObserver API with code heavily based on
@researchgate/react-intersection-observer LazyGroup
no longer extends fromLazy
as both useObserver
nowonViewport
receives intersection observer event as first parameter
Removed
checkElementsInViewport
Fixed
- Production build no longer requires
PropTypes
v0.6.1
v0.5.0
- Update to React 16
- Add
jsOnly
option as a solution for less React 16.0.0 errors