Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

perf(core): remove duplicate `JSON.stringify` call on `data` in `ssrExchange` (#3632)

Vlad c73d0e2a b638bc84

Changed files
+5 -1
.changeset
packages
core
src
exchanges
+5
.changeset/sweet-goats-judge.md
···
···
+
---
+
'@urql/core': patch
+
---
+
+
Removes double serialization of `data` in `ssrExchange`
-1
packages/core/src/exchanges/ssr.ts
···
includeExtensions: boolean
): SerializedResult => {
const serialized: SerializedResult = {
-
data: JSON.stringify(result.data),
hasNext: result.hasNext,
};
···
includeExtensions: boolean
): SerializedResult => {
const serialized: SerializedResult = {
hasNext: result.hasNext,
};