Commit 0c35da0a by Wee

fix: remove `invariant` temporarily (v3.0.5)

parent 4c3487f1
{
"name": "react-live-route",
"version": "3.0.4",
"version": "3.0.5",
"description": "A living route for react-router v4",
"repository": "fi3ework/react-live-route",
"license": "MIT",
......
......@@ -198,7 +198,7 @@ class LiveRoute extends React.Component<PropsType, any> {
} = this.props
let { children } = this.props
const context = { history, location, match, staticContext }
invariant(context, 'You should not use <Route> outside a <Router>')
// invariant(context, 'You should not use <Route> outside a <Router>')
const matchOfPath = this.props.path ? matchPath(location.pathname, this.props) : context.match
const matchOfLivePath = this.isLivePathMatch(livePath, alwaysLive, location!.pathname, {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment