wip(ssr): should apply app context when rendering app instance

This commit is contained in:
Evan You
2020-01-30 12:20:23 -05:00
parent 5c2fe536dc
commit c02e7bc7d6
3 changed files with 35 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ export interface App<HostElement = any> {
_component: Component
_props: Data | null
_container: HostElement | null
_context: AppContext
}
export interface AppConfig {
@@ -103,6 +104,7 @@ export function createAppAPI<HostNode, HostElement>(
_component: rootComponent,
_props: rootProps,
_container: null,
_context: context,
get config() {
return context.config