vercel-labs / next-fetch

Intuitive data fetching for Next.js
https://next-fetch-pi.vercel.app/
589 stars 14 forks source link

Create a React Query plugin by extracting a core infra package #15

Closed Schniz closed 2 years ago

Schniz commented 2 years ago

This plug-in infra can be re-used to enable more users have fun with declarative data fetching. This PR enables React Query users to use a next-rq-endpoints plugin for their data fetching, just like next-swr-endpoints. The API surface is pretty much the same, but the types are slightly different. Maybe we can minimize it to next-api-endpoints/react-query and next-api-endpoints/swr but for now (as these packages aren't published anyway) we can go with this.

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
next-swr-endpoints-example-app ✅ Ready (Inspect) Visit Preview Aug 8, 2022 at 10:54AM (UTC)