Skip to content

Commit c695c48

Browse files
committed
Keep match in context.route to be consistent with Route child context
1 parent ee63b33 commit c695c48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-router/modules/Router.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class Router extends React.Component {
1919
getChildContext() {
2020
return {
2121
history: this.props.history,
22-
route: this.state.match
22+
route: {
23+
match: this.state.match
24+
}
2325
}
2426
}
2527

0 commit comments

Comments
 (0)