vercel-labs / next-fetch

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

Allow to access the incoming request through `this.request` #12

Closed Schniz closed 2 years ago

Schniz commented 2 years ago

I would much rather to allow accessing the request through a getRequest function which will feel like a magical React hook, but that will require usage of async_hooks in Node.js, and the edge runtime does not have that

This enables using authentication using the headers. Maybe we should also allow testing the headers with a parser?

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 4, 2022 at 11:46AM (UTC)