From 42dce36bf16e1a81a15bb1d2b4dbceea7f00d496 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 28 May 2019 20:06:44 +0800 Subject: [PATCH] wip: basic setup wiring --- packages/runtime-core/src/component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 52690bc5..21d2e07d 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -160,14 +160,14 @@ export function setupStatefulComponent(instance: ComponentInstance) { } export function renderComponentRoot(instance: ComponentInstance): VNode { - const { type, vnode, proxy, $state, $slots } = instance + const { type, vnode, proxy, bindings, $slots } = instance if (!type) debugger const { 0: props, 1: attrs } = resolveProps( (vnode as VNode).props, type.props ) const renderArg = { - state: $state, + state: bindings || EMPTY_OBJ, slots: $slots, props, attrs