Client
Vue
Vue 3 + TanStack Query adapter with @pyrpc/vue.
Vue
npm install @pyrpc/vue @pyrpc/client @pyrpc/types @tanstack/vue-queryimport { createApp } from "vue"
import { createPyrpcVue } from "@pyrpc/vue"
import type { Types } from "@pyrpc/types"
export const api = createPyrpcVue<Types>({
baseUrl: "http://localhost:8000",
})
createApp(App).use(api.plugin).mount("#app")const { data } = api.greet.useQuery({ name: "Ada" })
pyRPC