Skip to content

Commit

Permalink
fix(React): mark cwrp as UNSAFE
Browse files Browse the repository at this point in the history
  • Loading branch information
STRML committed Feb 20, 2020
1 parent 6c84721 commit b2e6e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RouterMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var RouterMixin = {
return this.getRouterState(this.props);
},

componentWillReceiveProps: function(nextProps) {
UNSAFE_componentWillReceiveProps: function(nextProps) {
if (!shallowEqual(nextProps, this.props)) {
var nextState = this.getRouterState(nextProps);
this.delegateSetRoutingState(nextState);
Expand Down

0 comments on commit b2e6e64

Please sign in to comment.