Why function for applying query returns void instead of a promise? #5520
-
I'm using these plugins:
And when I generate hooks from operations I receive something like this.
Why can't it return a promise, like for mutations? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
React Apollo plugin is just a wrapper on top Apollo's own implementation. Codegen adds nothing special to their own |
Beta Was this translation helpful? Give feedback.
-
Upgrade to Apollo 3.5 or higher. From that version on, |
Beta Was this translation helpful? Give feedback.
React Apollo plugin is just a wrapper on top Apollo's own implementation. Codegen adds nothing special to their own
useLazyQuery
function. So it might be better to ask this on React Apollo's repo or Apollo's own community channel.