Skip to content

Overview

trpc-vue-query is a binding for Trpc, Vue and tanstack Query.

Just like the official integration for trpc and react-query, but for vue instead.

NOTE

The GitHub repository is Holi0317/trpc-vue-query, and we publish to npm package under @trpc-vue-query namespace.

The npm package trpc-vue-query is NOT owned by us and is a different (and empty?) package.

Support matrix

  • trpc: v11
    • At the time of writing, this is still the "next" version of trpc.
    • But the version is "stable and can be used in production" from migration guide
    • Installation command will use @next for trpc-related packages. If the npm tag is no longer required, modify the command and open an issue.
  • nuxt: v3
    • Technically not a hard dependency. We don't ship code depends on nuxt
    • But there is example and testing for nuxt integration
  • vue: v3.3
    • Vue 2.7 might work, but not tested
  • tanstack query: v5
    • Aligning with trpc v11's requirement on query v5

Nuxt support

Nuxt requires only some light plugin code to make it work with this package. The setup guide is available in nuxt integration documentation.

We also have a separate h3-adapter package for h3 server adapter, which powers nuxt server.