Skip to content

Commit

Permalink
Merge pull request #45 from mediamonks/develop
Browse files Browse the repository at this point in the history
getDerivedStateFromProps needs to be static
  • Loading branch information
tommymm authored Apr 12, 2022
2 parents e201477 + 69298af commit 0802c88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/withInitAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default (p1, p2, p3) => {
.catch(this.handleInitError);
}

getDerivedStateFromProps(newProps) {
static getDerivedStateFromProps(newProps) {
const {
__componentInitState: { selfInitState },
} = newProps;
Expand Down

0 comments on commit 0802c88

Please sign in to comment.