How to use QueryClientProvider in vue 3? i can't find it on the package
so guys i wan't to ask how can i use QueryClientProvider in vue 3 like react.. so i can apply inside app.vue as a wrapper, thank you
4 Replies
harsh-harlequin•4y ago
Hi,
Vue has a different convention of setting up globally accessible plugins. You can check
basic example to see how it works - https://github.com/TanStack/query/blob/main/examples/vue/basic/src/main.tsforeign-sapphireOP•4y ago
Great! @MrMentor , so how can i config like in react like this
harsh-harlequin•4y ago
If you need more docs with snippets, check this page, before it's migrated to tanstack docs - https://vue-query-next.vercel.app/#/guides/custom-client
foreign-sapphireOP•3y ago
Got it, thank you @MrMentor