We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent 9698dd3 commit 8963c55Copy full SHA for 8963c55
packages/runtime-core/src/helpers/createSlots.ts
@@ -33,7 +33,8 @@ export function createSlots(
33
const res = slot.fn(...args)
34
// attach branch key so each conditional branch is considered a
35
// different fragment
36
- ;(res as any).key = slot.key
+ // #6651 res can be undefined in SSR in string push mode
37
+ if (res) (res as any).key = slot.key
38
return res
39
}
40
: slot.fn
0 commit comments