Add forceCheck for react-lazyload

forceCheck is available to manually trigger checking for elements in viewport. Helpful when LazyLoad components enter the viewport without resize or scroll events, e.g. when the components' container was hidden then become visible.
This commit is contained in:
myxvisual 2017-06-26 13:06:41 +08:00 committed by GitHub
parent 0020fcee62
commit 9cb211daaa

View File

@ -24,3 +24,5 @@ export default class LazyLoad extends Component<LazyLoadProps> {
}
export function lazyload(option: {}): LazyLoad;
export function forceCheck(): void;