Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make props optional during SSR #12284

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: make props optional during SSR
  • Loading branch information
Rich-Harris committed Jul 3, 2024
commit 95c83615aa1a92f6f7b617af4dfbe15cce962e59
5 changes: 5 additions & 0 deletions .changeset/itchy-pianos-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: make props optional during SSR
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function render(component, options = {}) {
}

// @ts-expect-error
component(payload, options.props, {}, {});
component(payload, options.props ?? {}, {}, {});

if (options.context) {
pop();
Expand Down
Loading