{"repo":"connectrpc/connect-query-es","free":true,"listed":false,"github":"https://github.com/connectrpc/connect-query-es","clone":"git clone https://github.com/connectrpc/connect-query-es.git","description":"TypeScript-first expansion pack for TanStack Query that gives you Protobuf superpowers.","language":"TypeScript","stars":389,"topics":["react","react-query","reactjs","solid-query","svelte-query","tanstack","tanstack-query","tanstack-react-query","typescript","vue-query"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Connect-Query Connect-Query is an wrapper around TanStack Query (react-query), written in TypeScript and thoroughly tested. It enables effortless communication with servers that speak the Connect Protocol. - Quickstart - Install - Usage - Generated Code - Connect-Query API - TransportProvider - useTransport - useQuery - useSuspenseQuery - useInfiniteQuery - useSuspenseInfiniteQuery - useMutation - createConnectQueryKey - callUnaryMethod - createProtobufSafeUpdater - createQueryOptions - createInfiniteQueryOptions - addStaticKeyToTransport - ConnectQueryKey - QueryOptions - QueryOptionsWithSkipToken - InfiniteQueryOptions - InfiniteQueryOptionsWithSkipToken Quickstart Install [!TIP] If you are using something that doesn't automatically install peerDependencies (npm older than v7), you'll want to make sure you also have @bufbuild/protobuf , @connectrpc/connect , and @tanstack/react-query installed. @connectrpc/connect-web is required for defining the transport to be used by the client. Usage Connect-Query will immediately feel familiar to you if you've used TanStack Query. It provides a similar API, but instead takes a definition for your endpoint and returns a typesafe API for that endpoint. First, make sure you've configured your provider and query client: With configuration completed, you can now use the useQuery hook to make a request: That's it! The code generator does all the work of turning your Protobuf file into something you can easily import. TypeScript types all pop","default_branch":null,"files":null,"tree":[],"storefront":"/r/connectrpc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/connectrpc/connect-query-es/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}