Skip to content

Commit 8da990a

Browse files
UNSAFE_X Updated ClusteredMapView.js
Fixed Warning
1 parent 21757e7 commit 8da990a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ClusteredMapView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ export default class ClusteredMapView extends PureComponent {
4343
this.clusterize(this.props.data)
4444
}
4545

46-
componentWillReceiveProps(nextProps) {
46+
UNSAFE_componentWillReceiveProps(nextProps) {
4747
if (this.props.data !== nextProps.data)
4848
this.clusterize(nextProps.data)
4949
}
5050

51-
componentWillUpdate(nextProps, nextState) {
51+
UNSAFE_componentWillUpdate(nextProps, nextState) {
5252
if (!this.isAndroid && this.props.animateClusters && this.clustersChanged(nextState))
5353
LayoutAnimation.configureNext(this.props.layoutAnimationConf)
5454
}

0 commit comments

Comments
 (0)