Pets-without-names / Jax-Pet-Names

This project is a collaboration designed to create a pet naming web application.
MIT License
3 stars 2 forks source link

Fetching Data #8

Closed JaxTurboNerd closed 1 year ago

JaxTurboNerd commented 1 year ago

Do we want to use the standard Fetch methods that come with javascript or try something like Axios to connect to the backend? I've been doing a little research on the pros and cons. Open to other ideas. https://www.geeksforgeeks.org/difference-between-fetch-and-axios-js-for-making-http-requests/

dopecello commented 1 year ago

If it's really just simple GET requests then I think fetch is fine. If we are trying to do more like request cancellations, automatic retries, error handling, or more complex http request chains maybe Axios,

JaxTurboNerd commented 1 year ago

Sounds good. We'll plan on using the out of the box fetch.