From 505aa4bed39df28b1dc4312110f862935905b3eb Mon Sep 17 00:00:00 2001 From: myxvisual Date: Mon, 26 Jun 2017 13:08:32 +0800 Subject: [PATCH] Update react-lazyload-tests.tsx --- types/react-lazyload/react-lazyload-tests.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 (