Closed ger619 closed 2 years ago
Name | Link |
---|---|
Latest commit | 55eb7f119283b83d53c34eaa7e9047d763d4dff5 |
Latest deploy log | https://app.netlify.com/sites/nderic-space-travelers-hub/deploys/62ab8432eaa9920009d98f39 |
Deploy Preview | https://deploy-preview-33--nderic-space-travelers-hub.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
Config & basic setup
Redux: Fetch data and update Redux store
Upon first render fetch data from the SpaceX API endpoints:
https://api.spacexdata.com/v3/rockets
https://api.spacexdata.com/v3/missions
Once the data are fetched, dispatch an action to store the selected data in Redux store:
Rockets:
Missions:
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).
NOTE: Rockets is the default view, so you must fetch rockets data when the application starts. However, the missions data should only be fetched (once) when a user navigates to the Missions section.