Closed bevkoski closed 6 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
packages/components/src/viewport/withPlaceholder/index.js | 0 | 4 | 0.0% | ||
<!-- | Total: | 0 | 4 | 0.0% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
packages/components/src/viewport/withPlaceholder/index.js | 1 | 0.0% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 334: | -0.6% |
Covered Lines: | 852 |
Relevant Lines: | 1030 |
This feature is inspired by a Medium comment.
It adds support for keeping a component wrapped by
Viewport.WithPlaceholder
displayed once it enters the viewport.With
retainOnceInViewport
set tofalse
(default behavior), the component will be replaced by a placeholder once it leaves the viewport. WithretainOnceInViewport
set totrue
, the component will be kept displayed.