Open tomertweed opened 2 weeks ago
Hey this will be great if you can add it, this is a very useful feature!
Will be very appreciated
@tomertweed you can fully replace the fetch()
implementation of the fetch-client, have you looked at that?
just like this
import axios from "axios";
axios.interceptors.request.use(); // custom your client
const client = createClient({ baseURL, timeout, axios });
just like this
import axios from "axios"; axios.interceptors.request.use(); // custom your client const client = createClient({ baseURL, timeout, axios });
My goad is to use my client instead of interceptor of axios
Description
Hey, I want to replace the existing request clients (http, axios...) with my own client (A wrapper of axios with extra utils and different interface) I could only find usage of the pre-built clients. Im not sure if its supported or not but I would like to be able to customize / override the client with my own. And thanks for your great project