fix: make props optional during SSR

pull/12284/head
Rich Harris 2 years ago
parent 7e64e84479
commit 95c83615aa

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

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

Loading…
Cancel
Save