File tree 1 file changed +6
-4
lines changed
packages/runtime-core/src
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1064,8 +1064,12 @@ function baseCreateRenderer(
1064
1064
1065
1065
let { patchFlag, dynamicChildren, slotScopeIds : fragmentSlotScopeIds } = n2
1066
1066
1067
- if ( __DEV__ && isHmrUpdating ) {
1068
- // HMR updated, force full diff
1067
+ if (
1068
+ __DEV__ &&
1069
+ // #5523 dev root fragment may inherit directives
1070
+ ( isHmrUpdating || patchFlag & PatchFlags . DEV_ROOT_FRAGMENT )
1071
+ ) {
1072
+ // HMR updated / Dev root fragment (w/ comments), force full diff
1069
1073
patchFlag = 0
1070
1074
optimized = false
1071
1075
dynamicChildren = null
@@ -1098,8 +1102,6 @@ function baseCreateRenderer(
1098
1102
if (
1099
1103
patchFlag > 0 &&
1100
1104
patchFlag & PatchFlags . STABLE_FRAGMENT &&
1101
- // #5523 dev root fragment may inherit directives so always force update
1102
- ! ( __DEV__ && patchFlag & PatchFlags . DEV_ROOT_FRAGMENT ) &&
1103
1105
dynamicChildren &&
1104
1106
// #2715 the previous fragment could've been a BAILed one as a result
1105
1107
// of renderSlot() with no valid children
You can’t perform that action at this time.
0 commit comments