Skip to content

Commit 86d3889

Browse files
authored
fix: un-proxy form.result (#14346)
1 parent b2e921c commit 86d3889

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tangy-animals-invent.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+
fix: un-proxy `form.result`

packages/kit/src/runtime/client/remote-functions/form.svelte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function form(id) {
3232
const action = '?/remote=' + encodeURIComponent(action_id);
3333

3434
/** @type {any} */
35-
let result = $state(started ? undefined : remote_responses[action_id]);
35+
let result = $state.raw(started ? undefined : remote_responses[action_id]);
3636

3737
/** @type {number} */
3838
let pending_count = $state(0);

0 commit comments

Comments
 (0)