Skip to content

Commit cbeb13a

Browse files
set errors on root component - relates to #6279 (#6330)
* set errors on root component - relates to #6279 my page utilizing server actions was not receiving errors in export let errors... until now! * Create funny-keys-appear.md Co-authored-by: Rich Harris <hello@rich-harris.dev>
1 parent 1e28edb commit cbeb13a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/funny-keys-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sveltejs/kit": patch
3+
---
4+
5+
set errors on root component

packages/kit/src/core/sync/write_root.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function write_root(manifest_data, output) {
2121

2222
let l = max_depth;
2323

24-
let pyramid = `<svelte:component this={components[${l}]} data={data_${l}}/>`;
24+
let pyramid = `<svelte:component this={components[${l}]} data={data_${l}} {errors}/>`;
2525

2626
while (l--) {
2727
pyramid = `

0 commit comments

Comments
 (0)