fix router
This commit is contained in:
parent
06705bab5c
commit
b9b5641b26
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@_because/hype",
|
"name": "@_because/hype",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"module": "src/index.tsx",
|
"module": "src/index.tsx",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
@ -26,4 +26,4 @@
|
||||||
"hono": "^4.10.4",
|
"hono": "^4.10.4",
|
||||||
"kleur": "^4.1.5"
|
"kleur": "^4.1.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -45,7 +45,7 @@ export class Hype<
|
||||||
super(props)
|
super(props)
|
||||||
|
|
||||||
this.props = props ?? {}
|
this.props = props ?? {}
|
||||||
if (!this.router)
|
if (!this.props.router)
|
||||||
this.registerMiddleware()
|
this.registerMiddleware()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user