Skip to content
Permalink
Browse files
fix(ssr): fix dynamic slot regression in ssr
fix #6651
  • Loading branch information
yyx990803 committed Sep 28, 2022
1 parent 9698dd3 commit 8963c5508cde3a0c990b2748787ffb582b16f23f
Showing 1 changed file with 2 additions and 1 deletion.
@@ -33,7 +33,8 @@ export function createSlots(
const res = slot.fn(...args)
// attach branch key so each conditional branch is considered a
// different fragment
;(res as any).key = slot.key
// #6651 res can be undefined in SSR in string push mode
if (res) (res as any).key = slot.key
return res
}
: slot.fn

0 comments on commit 8963c55

Please sign in to comment.