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
When using the broadcast client with Nuxt (v3.14.1592), some actions, such as invalidations, will not be broadcasted correctly, seemingly due to the payload sent with postMessage not being serializable.
I have provided a screenshot showing the Firefox debugger with a breakpoint at postMessage. It shows that the data.queryKey field of the payload is a Proxy, which is probably likely to be the culprit?
Describe the bug
When using the broadcast client with Nuxt (v3.14.1592), some actions, such as invalidations, will not be broadcasted correctly, seemingly due to the payload sent with
postMessage
not being serializable.I have provided a screenshot showing the Firefox debugger with a breakpoint at
postMessage
. It shows that thedata.queryKey
field of the payload is aProxy
, which is probably likely to be the culprit?Your minimal, reproducible example
https://stackblitz.com/edit/github-scuhgu?file=app.vue
Steps to reproduce
Expected behavior
As a user, I expect the
postMessage
call to succeed, but it does not.How often does this bug happen?
Every time
Screenshots or Videos
Platform
Tanstack Query adapter
vue-query
TanStack Query version
5.61.4
TypeScript version
5.7.2
Additional context
No response
The text was updated successfully, but these errors were encountered: