-
As I was reading and testing out, it seens the bindings only work with vue 3, and if you want to use vue 2 and not use wonka, you should use toPromise, but this comes with a problem that those are not refeteched on change. How would I go in two cases:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 You're completely right; 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 Specifically it's just so easy to implement bindings with the composition API however that we'd only want to support Vue 3 right now to avoid a split in our userbase, as we've only added these bindings when Vue 3 was already released. |
Beta Was this translation helpful? Give feedback.
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 theClient
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
: #1327Specifically it'…