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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm having a hard time understanding the subscription handler types in
@urql/vue
when trying to reduce the data as described in the documentation.Let's say I have the following subscription in the schema:
Which I invoke like so:
I would expect
result.data
to be of typeRef<string[]>
andhandlePong
to look like this:But it seems the subscription handler expects
(prev: string | undefined, data: string) => string
.What am I missing ???
Beta Was this translation helpful? Give feedback.
All reactions