AdnanOlarmmi / Space-Travelers-Hub

A corporation that offers services for commercial and scientific space flight has a web application called Space-Travelers-Hub. Users of the app will be able to reserve rockets and sign up for particular space missions.
https://adnanquinspacetravelers.netlify.app/
MIT License
4 stars 1 forks source link

[4pt] Fetch rockets - Fetch data - Adnan #17

Open AdnanOlarmmi opened 1 year ago

AdnanOlarmmi commented 1 year ago

Fetch data from the Rockets endpoint (https://api.spacexdata.com/v3/rockets) when the application starts (as Rockets is the default view).

Once the data are fetched, dispatch an action to store the selected data in Redux store:

NOTE: Make sure you only dispatch those actions once and do not add data to store on every re-render (i.e. when changing views / using navigation).