Skip to content

Commit

Permalink
fix(slot): keep slot full diff.
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Jul 10, 2020
1 parent 18c537d commit df7a3c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-core/src/helpers/renderSlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export function renderSlot(
Fragment,
{ key: props.key },
slot ? slot(props) : fallback ? fallback() : [],
slots._ ? PatchFlags.STABLE_FRAGMENT : PatchFlags.BAIL
// full diff slot children.
// eg. #1557 switch slot/fallback static tree
PatchFlags.BAIL
)
)
}

0 comments on commit df7a3c9

Please sign in to comment.