Skip to content

offlineExchange failing to save to IndexedDB due to variables proxy #1809

Answered by JoviDeCroock
alexjharrison asked this question in Q&A
Discussion options

You must be logged in to vote

I think that sounds like a correct approach, we could check if it's a proxy and execute JSON.parse(JSON.strigify(operation.variables)) however we could also opt to send it as a non-proxy like object into the urql-pipeline 😅 so patch it in @urql/vue to be a POJO

EDIT: created a PR to resolve this issue #1810

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alexjharrison
Comment options

@JoviDeCroock
Comment options

@alexjharrison
Comment options

Answer selected by alexjharrison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants