Open Mrks83 opened 3 years ago
Yeah, that would be really awesome. Sadly this issue has been probably lost in tons of issues that are raised here.
It would really help not having to pass the instance to which interceptors are wired up each time we are using a client, but use similar approach like with baseUrl.
new MyClient()
.... how beautiful would it be.
Currently there is an option to "getBaseUrl" from base class, which is fine. It would be awesome to get the same for the second constructor parameter
instance
. That way interceptors can easily be added and constructor-calls withundefined
on the first parameternew MyClient(undefined, myInstance)
are not needed.