From 9999f4e781ab0d48bf87b09756df0ef8b4ff7fe9 Mon Sep 17 00:00:00 2001 From: Tommy Cheung Date: Tue, 12 Apr 2022 15:55:26 +0200 Subject: [PATCH 1/2] getDerivedStateFromProps needs to be static --- src/withInitAction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/withInitAction.js b/src/withInitAction.js index 48e3d02..e18aabb 100644 --- a/src/withInitAction.js +++ b/src/withInitAction.js @@ -168,7 +168,7 @@ export default (p1, p2, p3) => { .catch(this.handleInitError); } - getDerivedStateFromProps(newProps) { + static getDerivedStateFromProps(newProps) { const { __componentInitState: { selfInitState }, } = newProps; From 69298af28be378ca39debd28979cdb2e668fbb76 Mon Sep 17 00:00:00 2001 From: Tommy Cheung Date: Tue, 12 Apr 2022 15:55:43 +0200 Subject: [PATCH 2/2] Update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ac1cf38..8fb8956 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mediamonks/react-redux-component-init", - "version": "2.0.1", + "version": "2.0.2", "description": "A library to manage async component initialization in isomorphic React/Redux applications with server-side rendering", "main": "./lib/index.js", "scripts": {