Axios Singleton good or bad idea and how to implement?
Hey ppl, I'm asking myself a question.
Is it a good idea to have a single instance of axios for an application?
I'd like to take profit of interceptor and retry. But I'm not sure if it could go wrong if the instance can be corrupted or not?
And I'm not sure where to store it? Is a recoil atom a good place?
Do you know where I could find good example of it if it is a good practice etc..?
0 Replies