Help with reducing subscription data with @urql/vue #3540
Unanswered
lewebsimple
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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