Skip to content

Commit

Permalink
Rerun match on change to resolveElements
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Nov 1, 2016
1 parent 0b8f991 commit 5db7d42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/createBaseRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default function createBaseRouter({ routeConfig, matcher, render }) {
componentDidUpdate(prevProps) {
if (
this.props.match !== prevProps.match ||
this.props.resolveElements !== prevProps.resolveElements ||
!isEqual(this.props.matchContext, prevProps.matchContext)
) {
this.resolveMatch();
Expand Down

0 comments on commit 5db7d42

Please sign in to comment.