fix(watch): pre-flush watcher watching props should trigger before component update
fix #1763
This commit is contained in:
@@ -40,7 +40,8 @@ import {
|
||||
queueJob,
|
||||
queuePostFlushCb,
|
||||
flushPostFlushCbs,
|
||||
invalidateJob
|
||||
invalidateJob,
|
||||
runPreflushJobs
|
||||
} from './scheduler'
|
||||
import { effect, stop, ReactiveEffectOptions, isRef } from '@vue/reactivity'
|
||||
import { updateProps } from './componentProps'
|
||||
@@ -1429,6 +1430,7 @@ function baseCreateRenderer(
|
||||
instance.next = null
|
||||
updateProps(instance, nextVNode.props, prevProps, optimized)
|
||||
updateSlots(instance, nextVNode.children)
|
||||
runPreflushJobs()
|
||||
}
|
||||
|
||||
const patchChildren: PatchChildrenFn = (
|
||||
|
||||
Reference in New Issue
Block a user