JS Client should use fetch #4749
robodove
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
The client being axios-powered is a pet-peeve of mine, but we haven't gotten to revisit it yet. The extension idea is excellent too. Would love to see a PR on this - happy to help with getting started if interested. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
not much to say, it should use fetch instead of axios (which uses XMLHttpRequest internally)
Nextjs 13 App directory patches native fetch for caching, which is completely lost when using XMLHttpRequest
And the client should be extensible, eg:
This way actually extending the medusa backend can be used with the existing client, instead of having two separate clients
I'd volunteer going down that rabbit hole
Beta Was this translation helpful? Give feedback.
All reactions