You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently useFetch only allows for one generic argument - the response body.
I suggest adding an optional second argument for the request body.
When using libraries like zod it's very useful to be able to strongly type the request body so that when it changes you don't have to go hunting, the issues will immediately pop up.
Below is an example of how I currently get around this constraint:
Currently useFetch only allows for one generic argument - the response body.
I suggest adding an optional second argument for the request body.
When using libraries like zod it's very useful to be able to strongly type the request body so that when it changes you don't have to go hunting, the issues will immediately pop up.
Below is an example of how I currently get around this constraint:
I think it would make to include this in the library.
Thanks.
The text was updated successfully, but these errors were encountered: