diff --git a/src/index.js b/src/index.js index 4ad59f99..204a37a2 100644 --- a/src/index.js +++ b/src/index.js @@ -214,7 +214,7 @@ class Router extends Component { path = attrs.path, matches = exec(url, path, attrs); if (matches) { - if (invoke!==false) { + if (invoke!==false && typeof vnode.nodeName==='function') { let newProps = { url, matches }; assign(newProps, matches); delete newProps.ref;