Skip to content

Commit 5249fdd

Browse files
authored
Fix: client serialization issue (#2084)
1 parent 0d7144b commit 5249fdd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/lemon-games-mate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/start": patch
3+
---
4+
5+
fix client-side serialization typo

packages/start/src/runtime/serialization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class SerovalChunkReader {
198198
export async function serializeToJSONString(value: any) {
199199
// const response = new Response(serializeToJSONStream(value));
200200
// return await response.text();
201-
return JSON.stringify(toJSONAsync(value, {
201+
return JSON.stringify(await toJSONAsync(value, {
202202
plugins: DEFAULT_PLUGINS,
203203
depthLimit: MAX_SERIALIZATION_DEPTH_LIMIT,
204204
disabledFeatures: DISABLED_FEATURES,

0 commit comments

Comments
 (0)