]> git.ipfire.org Git - thirdparty/vuejs/core.git/commit
fix(watch): update `oldValue` before running `cb` to prevent stale value (#12296)
authorTycho <jh.leong@outlook.com>
Tue, 20 May 2025 00:44:13 +0000 (08:44 +0800)
committerGitHub <noreply@github.com>
Tue, 20 May 2025 00:44:13 +0000 (08:44 +0800)
commitc69c4bb59c114f2b5e03733b55ef9ace3087b5c3
treec541c09020dd5eb2294ea1476dbab84ffe9c9640
parent1a664749d4d65a345589a6d78106ede7574cb2e1
fix(watch): update `oldValue` before running `cb` to prevent stale value (#12296)

close #12294
packages/reactivity/__tests__/watch.spec.ts
packages/reactivity/src/watch.ts