Skip to content

Commit 9abea58

Browse files
committed
remove validation for 0.12 compatibility
1 parent 9804a78 commit 9abea58

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

modules/mixins/RouteContext.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ function processRoute(route, container, namedRoutes) {
1010
// Note: parentRoute may be a <Route> _or_ a <Routes>.
1111
var props = route.props;
1212

13-
invariant(
14-
React.isValidClass(props.handler),
15-
'The handler for the "%s" route must be a valid React class',
16-
props.name || props.path
17-
);
13+
// TODO: use isValidElement when we update everything for React 0.12
14+
//invariant(
15+
//React.isValidClass(props.handler),
16+
//'The handler for the "%s" route must be a valid React class',
17+
//props.name || props.path
18+
//);
1819

1920
var parentPath = (container && container.props.path) || '/';
2021

0 commit comments

Comments
 (0)