fix(ssr): update initial old value to watch callback in ssr usage (#4103)
This commit is contained in:
parent
b274b08f5f
commit
20b6619793
@ -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
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user