swr interceptor and instance support #489
Unanswered
muratdogan17
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I think both are possible right now, you can create as many instances as you want and use them as fetcher, same for interceptors. SWR is not tied to Axios and should not have features only to use them with this library. |
Beta Was this translation helpful? Give feedback.
2 replies
-
https://github.com/bird-studio/use-map You can use it if you like. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks, this is really awesome library. I need two feature to replace my existing Axios implementation but couldn't find in any document, issue or pull request.
1 - I need to create several instances which have different base URLs
2 - I also need interceptors for both request and responses
Regards,
Murat
Beta Was this translation helpful? Give feedback.
All reactions