parent
b60cff052c
commit
cdda49bbfb
@ -1064,8 +1064,12 @@ function baseCreateRenderer(
|
|||||||
|
|
||||||
let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2
|
let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2
|
||||||
|
|
||||||
if (__DEV__ && isHmrUpdating) {
|
if (
|
||||||
// HMR updated, force full diff
|
__DEV__ &&
|
||||||
|
// #5523 dev root fragment may inherit directives
|
||||||
|
(isHmrUpdating || patchFlag & PatchFlags.DEV_ROOT_FRAGMENT)
|
||||||
|
) {
|
||||||
|
// HMR updated / Dev root fragment (w/ comments), force full diff
|
||||||
patchFlag = 0
|
patchFlag = 0
|
||||||
optimized = false
|
optimized = false
|
||||||
dynamicChildren = null
|
dynamicChildren = null
|
||||||
@ -1098,8 +1102,6 @@ function baseCreateRenderer(
|
|||||||
if (
|
if (
|
||||||
patchFlag > 0 &&
|
patchFlag > 0 &&
|
||||||
patchFlag & PatchFlags.STABLE_FRAGMENT &&
|
patchFlag & PatchFlags.STABLE_FRAGMENT &&
|
||||||
// #5523 dev root fragment may inherit directives so always force update
|
|
||||||
!(__DEV__ && patchFlag & PatchFlags.DEV_ROOT_FRAGMENT) &&
|
|
||||||
dynamicChildren &&
|
dynamicChildren &&
|
||||||
// #2715 the previous fragment could've been a BAILed one as a result
|
// #2715 the previous fragment could've been a BAILed one as a result
|
||||||
// of renderSlot() with no valid children
|
// of renderSlot() with no valid children
|
||||||
|
Loading…
Reference in New Issue
Block a user