Skip to content

Commit

Permalink
fix(ssr): update initial old value to watch callback in ssr usage (#4103
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ioslh authored Jul 19, 2021
1 parent b274b08 commit 20b6619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function doWatch(
} else if (immediate) {
callWithAsyncErrorHandling(cb, instance, ErrorCodes.WATCH_CALLBACK, [
getter(),
undefined,
isMultiSource ? [] : undefined,
onInvalidate
])
}
Expand Down

0 comments on commit 20b6619

Please sign in to comment.