Skip to content

using with vue/composition-api vue 2 to have "refetch". #1671

Answered by kitten
fenilli asked this question in Q&A
Discussion options

You must be logged in to vote

This is a difficult one for me to answer because I don't have much experience with Vue, specifically Vue 2, as we only looked into Vue 3's composition API because it's a good fit for urql and have built the bindings specifically for Vue 3 to avoid having to learn more about it than our capacity is at right now.

You're completely right; toPromise is for small imperative calls, but will prevent any of the update logic, from the Client and from a caching perspective, to work.

I think the main way forward is to make sure that we can implement a Vue Options API in the future to ensure that the migration path to Vue 3 is cleared for users on Vue 2 that'd like to use urql: #1327

Specifically it'…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fenilli
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