From: ioslh Date: Mon, 19 Jul 2021 21:13:37 +0000 (+0800) Subject: fix(ssr): update initial old value to watch callback in ssr usage (#4103) X-Git-Tag: v3.2.0-beta.2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20b6619793702d265fcc3a7c099f5764fa9d8685;p=thirdparty%2Fvuejs%2Fcore.git fix(ssr): update initial old value to watch callback in ssr usage (#4103) --- diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index 2c2d896475..4749bb7304 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/packages/runtime-core/src/apiWatch.ts @@ -265,7 +265,7 @@ function doWatch( } else if (immediate) { callWithAsyncErrorHandling(cb, instance, ErrorCodes.WATCH_CALLBACK, [ getter(), - undefined, + isMultiSource ? [] : undefined, onInvalidate ]) }