-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Hi,
I am facing a problem with Winjs and React Router when using the SplitView component.
Those are my components:
<Router>
<App />
<Router>
``` app.js
<MySplitView>
<Route exact path="/" component={Home}/>
</MySplitView>
```mySplitView.js
<Winjs.SplitView
style={{height: "calc(100% - 48px)"}}
paneComponent={<div>Navigation</div>}
contentComponent={<div>{this.props.children}</div>}
onAfterClose={this.handleAfterClose}
closedDisplayMode="inline"
openedDisplayMode="inline"
paneOpened={this.state.paneOpened}/>
The error message is:
"TypeError: _ref2 is undefined
computeMatch"
And when using the `Switch` component from `react-router' I get a diffrent error regarding the context:
"TypeError: this.context.router is undefined"
So, I suggest that the SplitView component does not initialize the context correctly. mush42
Metadata
Metadata
Assignees
Labels
No labels