Replies: 4 comments 10 replies
-
Hi @vabatta, I don't plan allowing this right now, mostly because I don't see how useful that is. Could you elaborate what this would actually allow you to do? |
Beta Was this translation helpful? Give feedback.
-
I think it absolutely is. |
Beta Was this translation helpful? Give feedback.
-
There are additional reasons for wanting to pass in a custom fetch implementation
Because I do not have access to the Request object created by the library and cannot provide a custom fetch implementation this is impossible without
The library would be much ergonomic if this was possible. This would also solve: #79 and #20 I would be happy to make the changes and submit a PR if greenlighted |
Beta Was this translation helpful? Give feedback.
-
I'm looking for feedback for this request in #94 |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was wondering if it would be possible to add an option to method which uses
fetch
under the hood to actually have a customfetch
implementation be passed. This would be useful for cases where thefetch
is actually enriched with custom functionalities (for example in SSR in SvelteKit).I had a quick look at the source code, and my idea would have been to add an extra optional parameter with the default being
fetch
to all method which uses it, making the change retro-compatible.Beta Was this translation helpful? Give feedback.
All reactions