From f75bc966aedcd136246836afd7289c4bc4496c25 Mon Sep 17 00:00:00 2001 From: Josh Fry Date: Tue, 27 Aug 2019 10:40:01 -0700 Subject: [PATCH] Update index.js Change `componentWillMount` to `UNSAFE_componentWillMount` --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b224ec6..a4fae9e 100644 --- a/src/index.js +++ b/src/index.js @@ -67,7 +67,7 @@ export default function withSideEffect( return !shallowEqual(nextProps, this.props); } - componentWillMount() { + UNSAFE_componentWillMount() { mountedInstances.push(this); emitChange(); }