From fddef8bb742439dc2405e6db198605a3c120c8d8 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sat, 26 Jun 2021 21:35:25 -0400 Subject: [PATCH] chore: remove unnecessary casting --- packages/runtime-core/src/apiWatch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index b7092248..34c8deb1 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/packages/runtime-core/src/apiWatch.ts @@ -175,8 +175,8 @@ function doWatch( let isMultiSource = false if (isRef(source)) { - getter = () => (source as Ref).value - forceTrigger = !!(source as Ref)._shallow + getter = () => source.value + forceTrigger = !!source._shallow } else if (isReactive(source)) { getter = () => source deep = true