diff --git a/types/react-lazyload/react-lazyload-tests.tsx b/types/react-lazyload/react-lazyload-tests.tsx index 37b928a99c..74353a51ed 100644 --- a/types/react-lazyload/react-lazyload-tests.tsx +++ b/types/react-lazyload/react-lazyload-tests.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import LazyLoad from "react-lazyload"; +import LazyLoad, { forceCheck } from "react-lazyload"; interface State { arr: string[]; @@ -14,6 +14,11 @@ class Normal extends React.Component<{}, State> { } this.state = { arr }; } + + componentDidMount() { + forceCheck(); + } + render() { return (