I think he was talking about the implementation. The implementation is already coupled with axios. Can you explain why e.g. you didn't just return the promise returned by axios.get in your implementation of the get method?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice!
Just one doubt. Why don't you simply return the axios promise in each method instead putting it into a new Promise constructor?
To avoid coupling with axios. That is the purpose of the post.
I think he was talking about the implementation. The implementation is already coupled with axios. Can you explain why e.g. you didn't just return the promise returned by
axios.get
in your implementation of the get method?