Skip to content

Commit

Permalink
fluxible-router: renamed unsafe methods (#656)
Browse files Browse the repository at this point in the history
* fluxible-router: drop support to old react versions

* fluxible-router: rename unsafe react method

Co-authored-by: Pablo Palacios <[email protected]>
  • Loading branch information
pablopalacios and pablopalacios authored Sep 28, 2020
1 parent 7928e99 commit 9933c10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/fluxible-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"peerDependencies": {
"fluxible": "^1.0.0",
"react": "^0.14.0 || ^15.0.0 || ^16.0.0"
"react": "^16.3.0"
},
"keywords": [
"flux",
Expand Down
2 changes: 1 addition & 1 deletion packages/fluxible-router/src/lib/createNavLinkComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class NavLink extends React.Component {
this.state.currentRoute !== nextState.currentRoute
);
}
componentWillReceiveProps (nextProps) {
UNSAFE_componentWillReceiveProps (nextProps) {
this.setState(this._getState(nextProps));
}
_onRouteStoreChange () {
Expand Down

0 comments on commit 9933c10

Please sign in to comment.