We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c0614 commit 098da68Copy full SHA for 098da68
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "cell-router",
3
- "version": "4.0.0",
+ "version": "4.0.1",
4
"license": "LGPL-3.0",
5
"description": "Web Component Router based on WebCell & MobX",
6
"keywords": [
source/Router.tsx
@@ -66,9 +66,12 @@ export class CellRouter
66
if (routes[0]) this.routes = routes;
67
};
68
69
- @reaction(({ history }) => history.path)
+ @reaction(({ history }) => history?.path)
70
async renderChildren() {
71
const { history, routes } = this;
72
+
73
+ if (!history) return;
74
75
const { path } = history;
76
const [{ component: Tag, ...matched } = {}] = [...routes]
77
.sort(
0 commit comments