From b419f903df0cbbdb5b9d81bfbf8067cdea8d1075 Mon Sep 17 00:00:00 2001 From: Alexander Mextner Date: Fri, 16 Aug 2019 00:47:04 +0300 Subject: [PATCH] =?UTF-8?q?componentWillMount=20=E2=86=92=20componentDidMo?= =?UTF-8?q?unt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b224ec6..f66d58c 100644 --- a/src/index.js +++ b/src/index.js @@ -67,7 +67,7 @@ export default function withSideEffect( return !shallowEqual(nextProps, this.props); } - componentWillMount() { + componentDidMount() { mountedInstances.push(this); emitChange(); }