Skip to content

Commit 20b6619

Browse files
authored
fix(ssr): update initial old value to watch callback in ssr usage (#4103)
1 parent b274b08 commit 20b6619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/apiWatch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function doWatch(
265265
} else if (immediate) {
266266
callWithAsyncErrorHandling(cb, instance, ErrorCodes.WATCH_CALLBACK, [
267267
getter(),
268-
undefined,
268+
isMultiSource ? [] : undefined,
269269
onInvalidate
270270
])
271271
}

0 commit comments

Comments
 (0)