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
Even though the user can provide their own fetch functions, exporting the default fetch.ts into the userspace can be a good idea for various reasons, for example:
It is no longer necessary to add kubb-client as a hard dependency (dev-dep is enough) in package.json.
The user can adapt or reuse the generated fetch function within its userland.
The amount of complexity this is adding to Kubb does not seem to be worth it to me(see main...poc/1517-copy-client, the react-query and other plugins also need to access that newly created client.ts file.).
Let's stay with the current approach, @kubb/plugin-client/clients/axios contains some default clients. If a developer does not want to use those, override the importPath and just copy-paste the current client to their codebase. This will just work fine. See https://www.kubb.dev/plugins/plugin-client/#importpath
What is the problem this feature would solve?
Even though the user can provide their own fetch functions, exporting the default
fetch.ts
into the userspace can be a good idea for various reasons, for example:kubb-client
as a hard dependency (dev-dep is enough) inpackage.json
.See #1497 (comment) for more details.
External documents/projects?
No response
What is the feature you are proposing to solve the problem?
No response
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: