From 74265190f2ca169823df11f4390826bf1c3de0f6 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 3 Oct 2018 10:30:14 -0400 Subject: [PATCH] types: fix types --- packages/core/src/createRenderer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/createRenderer.ts b/packages/core/src/createRenderer.ts index 4eb75d0e..d737ea1a 100644 --- a/packages/core/src/createRenderer.ts +++ b/packages/core/src/createRenderer.ts @@ -235,7 +235,7 @@ export function createRenderer(options: RendererOptions) { ) { const { tag, data, slots } = vnode const render = tag as FunctionalComponent - const { props, attrs } = resolveProps(data, render.props, render) + const { props, attrs } = resolveProps(data, render.props) const subTree = (vnode.children = normalizeComponentRoot( render(props, slots || EMPTY_OBJ, attrs || EMPTY_OBJ), vnode, @@ -523,7 +523,7 @@ export function createRenderer(options: RendererOptions) { } if (shouldUpdate) { - const { props, attrs } = resolveProps(nextData, render.props, render) + const { props, attrs } = resolveProps(nextData, render.props) const nextTree = (nextVNode.children = normalizeComponentRoot( render(props, nextSlots || EMPTY_OBJ, attrs || EMPTY_OBJ), nextVNode,