Custom fetch support per call #1369
Labels
enhancement
New feature or request
openapi-fetch
Relevant to the openapi-fetch library
PRs welcome
PRs are welcome to solve this issue!
Description
SvelteKit provides a custom fetch function for loaders(which provide data for components) with a bunch of QoL improvements - this fetch functions are specific to each call so they can't be provided on
createClient
call. Would be nice to have an option to provide custom fetch function per specific openapi-fetch call.Proposal
Extent FetchOptions type with a fetch parameter akin to ClientOptions - default to createClient specified fetch if not provided.
Checklist
The text was updated successfully, but these errors were encountered: