fix router

This commit is contained in:
Chris Wanstrath 2026-01-29 18:41:49 -08:00
parent 06705bab5c
commit b9b5641b26
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@_because/hype",
"version": "0.1.1",
"version": "0.1.2",
"module": "src/index.tsx",
"type": "module",
"exports": {
@ -26,4 +26,4 @@
"hono": "^4.10.4",
"kleur": "^4.1.5"
}
}
}

View File

@ -45,7 +45,7 @@ export class Hype<
super(props)
this.props = props ?? {}
if (!this.router)
if (!this.props.router)
this.registerMiddleware()
}