From 5ab1d75c3957d70f223209f7b9be928fb20821b3 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 2 Oct 2019 09:46:29 -0400 Subject: [PATCH] fix(options): fix renderTriggered option translation --- packages/runtime-core/src/componentOptions.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/componentOptions.ts b/packages/runtime-core/src/componentOptions.ts index f9728088..9ee96ed6 100644 --- a/packages/runtime-core/src/componentOptions.ts +++ b/packages/runtime-core/src/componentOptions.ts @@ -23,7 +23,8 @@ import { onErrorCaptured, onRenderTracked, onBeforeUnmount, - onUnmounted + onUnmounted, + onRenderTriggered } from './apiLifecycle' import { DebuggerEvent, reactive } from '@vue/reactivity' import { ComponentPropsOptions, ExtractPropTypes } from './componentProps' @@ -330,7 +331,7 @@ export function applyOptions( onRenderTracked(renderTracked.bind(ctx)) } if (renderTriggered) { - onRenderTracked(renderTriggered.bind(ctx)) + onRenderTriggered(renderTriggered.bind(ctx)) } if (beforeUnmount) { onBeforeUnmount(beforeUnmount.bind(ctx))