Skip to content

Avoid serializing the payload before sending it in devtools messages#1245

Merged
jerelmiller merged 3 commits intomainfrom
no-serialize-cache
Mar 7, 2024
Merged

Avoid serializing the payload before sending it in devtools messages#1245
jerelmiller merged 3 commits intomainfrom
no-serialize-cache

Conversation

@jerelmiller
Copy link
Copy Markdown
Member

@jerelmiller jerelmiller commented Mar 6, 2024

This removes the JSON parsing/serialization of the queries/cache/mutations payload sent in the devtools messages when communicating with various parts of the devtools. This is mostly redundant since window.postMessage uses the structured clone algorithm when sending data in message payloads.

@jerelmiller jerelmiller requested a review from a team as a code owner March 6, 2024 23:20
@jerelmiller jerelmiller changed the title Avoid serializing the payload before sending it in devtools messages. Avoid serializing the payload before sending it in devtools messages Mar 6, 2024
Copy link
Copy Markdown
Member

@phryneas phryneas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's so much better, LGTM! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants