Skip to content

Commit

Permalink
perf(core): remove duplicate JSON.stringify call on data in `ssrE…
Browse files Browse the repository at this point in the history
…xchange` (#3632)
  • Loading branch information
negezor authored Jul 29, 2024
1 parent b638bc8 commit c73d0e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sweet-goats-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@urql/core': patch
---

Removes double serialization of `data` in `ssrExchange`
1 change: 0 additions & 1 deletion packages/core/src/exchanges/ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ const serializeResult = (
includeExtensions: boolean
): SerializedResult => {
const serialized: SerializedResult = {
data: JSON.stringify(result.data),
hasNext: result.hasNext,
};

Expand Down

0 comments on commit c73d0e2

Please sign in to comment.