fix: make props optional during SSR (#12284)

pull/12297/head
Rich Harris 6 months ago committed by GitHub
parent 7e64e84479
commit 2f1d2d5906
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: make props optional during SSR

@ -113,7 +113,7 @@ export function render(component, options = {}) {
} }
// @ts-expect-error // @ts-expect-error
component(payload, options.props, {}, {}); component(payload, options.props ?? {}, {}, {});
if (options.context) { if (options.context) {
pop(); pop();

Loading…
Cancel
Save