feat: support async app template (#1626)

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
Marvin Hagemeister
2023-08-14 14:52:48 +02:00
committed by GitHub
co-authored by Asher Gomez
parent 563b61d849
commit ba67d895ce
14 changed files with 217 additions and 158 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import {
typeByExtension,
walk,
} from "./deps.ts";
import { h } from "preact";
import { ComponentType, h } from "preact";
import * as router from "./router.ts";
import { DenoConfig, Manifest } from "./mod.ts";
import { ALIVE_URL, JS_PREFIX, REFRESH_JS_URL } from "./constants.ts";
@@ -967,7 +967,7 @@ const DEFAULT_ROUTER_OPTIONS: RouterOptions = {
};
const DEFAULT_APP: AppModule = {
default: ({ Component }) => h(Component, {}),
default: ({ Component }: { Component: ComponentType }) => h(Component, {}),
};
const DEFAULT_NOT_FOUND: UnknownPage = {