fix(ssr): update initial old value to watch callback in ssr usage (#4103)

This commit is contained in:
ioslh 2021-07-20 05:13:37 +08:00 committed by GitHub
parent b274b08f5f
commit 20b6619793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,7 +265,7 @@ function doWatch(
} else if (immediate) { } else if (immediate) {
callWithAsyncErrorHandling(cb, instance, ErrorCodes.WATCH_CALLBACK, [ callWithAsyncErrorHandling(cb, instance, ErrorCodes.WATCH_CALLBACK, [
getter(), getter(),
undefined, isMultiSource ? [] : undefined,
onInvalidate onInvalidate
]) ])
} }