Vue3 support #637
Replies: 5 comments 29 replies
-
|
Nice! Thanks for making this. I actually just merged some structural changes that make the codebase easier to navigate by concern (core and react). Check it out! |
Beta Was this translation helpful? Give feedback.
-
|
I’m not sure yet, but honestly the distribution shouldn’t matter too much at this point. We can always make it better. My gut reaction is to just add a new set of roll up exports and create a proxy file to support react-query/vue. As odd as that sounds. It makes it very easy for now.
…On Jul 20, 2020, 9:53 PM -0600, Ayush Goyal ***@***.***>, wrote:
@tannerlinsley How do you think we should structure the repo to support Vue? Considering the package nomenclature (react-query), do we still want to place the support for Vue in this repo? How would we distribute it on npm? Do you think we would need to convert this to a monorepo where we have core as it's own distribution ***@***.***/core) and react/vue as consumers of core ***@***.***/react and @react-query/core)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
|
hey guys! 👋 thanks for opening this discussion, I also saw your tweet about it back then. in my company, we're elaborating to get rid of Vuex for data fetching and use other solutions to handle and cache remote data. we really like the idea of SWR and considering to adopt the Vue.js version of it, SWRV. as someone who's coming from a React background (that's me), I'm a huge fan of your work and libraries in the React ecosystem and it would be really great to use |
Beta Was this translation helpful? Give feedback.
-
|
Any news on this? Just curious |
Beta Was this translation helpful? Give feedback.
-
|
vue-query should support most of the features of react-query as of now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I just didn't want the idea to get lost: https://twitter.com/tannerlinsley/status/1275820844745281538
Vue3 is still in Beta but I like the idea of hooks libraries to be available between view libraries and react-query provides intuitive abstraction over caching server data.
I'm also interested if the same can be said about other Tanstack libs, since they are React hooks based - is the main logic usually abstracted in a way one could easily swap out the hooks themselves with an alternative or is this just the case with react-query?
For a quick summary here's React Hooks comparison with the Composition API:
Basic Hooks
Additional Hooks
--
So to summarize: Vue hooks get called once, the state is mutable but automatically tracked, you can watch changes and component lifecycles.
The crossover between the libraries is constantly growing stronger, Vue supports render functions (and therefor JSX) like preact, so components can even be reused between libraries. You could also use Vue's reactivity model in React like described in the end of this article.
Beta Was this translation helpful? Give feedback.
All reactions