Skip to content

Commit 2bab639

Browse files
committed
fix(runtime-core): fix directive inheritance on dev root fragment
fix #5523
1 parent 51f3d38 commit 2bab639

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/runtime-core/src/renderer.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,8 @@ function baseCreateRenderer(
10981098
if (
10991099
patchFlag > 0 &&
11001100
patchFlag & PatchFlags.STABLE_FRAGMENT &&
1101+
// #5523 dev root fragment may inherit directives so always force update
1102+
!(__DEV__ && patchFlag & PatchFlags.DEV_ROOT_FRAGMENT) &&
11011103
dynamicChildren &&
11021104
// #2715 the previous fragment could've been a BAILed one as a result
11031105
// of renderSlot() with no valid children

0 commit comments

Comments
 (0)