fix: missing Component with async app + layout (#1848)

This commit is contained in:
Marvin Hagemeister
2023-10-04 14:10:11 +02:00
committed by GitHub
parent bed185688c
commit f7000c3f53
8 changed files with 80 additions and 1 deletions
+9 -1
View File
@@ -226,7 +226,15 @@ export async function render<Data>(
componentFn.displayName = (fn as any).displayName || fn.name;
componentStack[i] = componentFn;
} else {
componentStack[i] = fn;
componentStack[i] = () => {
return h(fn, {
...props,
Component() {
return h(componentStack[i + 1], null);
},
// deno-lint-ignore no-explicit-any
} as any);
};
}
}