next-fetch
next-fetch copied to clipboard
Intuitive data fetching for Next.js
This repo is no longer just for SWR (although it's my favorite tool). It just makes sense to make the packages have a more consistent naming scheme, so `next-swr-endpoints` and...
I just came across this and am trying to find any docs or explainer, is there one? Looks like this was done in a workshop
The idea behind this feature is to enable long-running clients to react to changes in the backend schemas. Imagine you have an endpoint that returns `{ version: 1, data: string...
The SWR API allows users to opt out of fetching by having a `null` key: ```ts useSWR(() => someCondition ? null : "/my/key", ...) ``` I think we can support...
When I asked for feedback, one person told me he does not like the fact this library forces you to declare a type in advance using `zod`, alternative libraries, or...
## Summary Currently the `Form.encType` has no effect when using `@next-fetch/swr/form`. Enabling [encType](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-enctype)s like `multipart/form-data` would allow all kinds of common features like File Uploads. ## Basic example **File:** `pages/file-upload.tsx`...
Thanks for the phenomenal work. Having used trpc, I can't wait to have a native nextjs solution. Something that works well in trpc is the notion of a context builder....
This PR prevents users from adding another `Form.encType` like `application/x-www-form-urlencoded`. This prevents breaking changes in the future. Related: #36