Skip to content

Commit

Permalink
Resolve warning about getDerivedStateFromProps (#117)
Browse files Browse the repository at this point in the history
This change should resolve warning mentioned in this issue facebook/react#12562

`getDerivedStateFromProps(): A valid state object (or null) must be returned`
  • Loading branch information
urakozz authored and STRML committed Nov 13, 2019
1 parent 3a80134 commit 4ef15ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ResizableBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default class ResizableBox extends React.Component<ResizableProps, State>
propsHeight: props.height,
};
}
return null;
}

onResize = (e: SyntheticEvent<>, data: ResizeCallbackData) => {
Expand Down

0 comments on commit 4ef15ea

Please sign in to comment.