You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: safely serialize query/mutation data to prevent DataCloneError with framework proxies
Frameworks like Vue 3, MobX, and Solid wrap state in Proxy objects.
When mapQueryToData / mapMutationToData pass these values directly into
the payload sent via window.postMessage, the structured clone algorithm
fails with a DataCloneError.
Add a safeClone helper that JSON-round-trips values before they are
included in the message payload. This reads through Proxy getters and
produces plain objects that are safe for structured cloning.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments