React v16.3.0 fixes.

This commit is contained in:
orangemug
2018-05-17 11:24:39 +01:00
parent 79b251d8b9
commit 77da0a6d30
8 changed files with 9 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ export default class ZoomProperty extends React.Component {
}
}
componentWillMount() {
componentDidMount() {
this.setState({
refs: this.setStopRefs(this.props)
})
@@ -66,7 +66,7 @@ export default class ZoomProperty extends React.Component {
return newRefs;
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
const newRefs = this.setStopRefs(nextProps);
if(newRefs) {
this.setState({