Skip to content

Commit a0ce26b

Browse files
nhunzakerryanflorence
authored andcommitted
[fix] Wrap handler in span to soak context warning
1 parent 00d60a1 commit a0ce26b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/components/RouteHandler.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ class RouteHandler extends React.Component {
4242
}
4343

4444
render() {
45-
return this.createChildRouteHandler();
45+
// IMPORTANT: This span "soaks" up owner context, keeping
46+
// React 0.13.0 from throwing a warning.
47+
// TODO: Why should this even be necessary?
48+
return <span>{ this.createChildRouteHandler() }</span>
4649
}
4750

4851
}

0 commit comments

Comments
 (0)