Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team3 [4pt] Fetch dragons - Fetch data #16

Closed
benwmx opened this issue Oct 11, 2021 · 0 comments
Closed

Team3 [4pt] Fetch dragons - Fetch data #16

benwmx opened this issue Oct 11, 2021 · 0 comments

Comments

@benwmx
Copy link
Owner

benwmx commented Oct 11, 2021

Fetch data from the Dragons endpoint (https://api.spacexdata.com/v3/dragons) when a user navigates to the Dragons section.

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

  • id
  • name
  • type
  • flickr_images

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).

@benwmx benwmx closed this as completed Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant