Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Data Fetching #4

Open
DoodlingDev opened this issue Aug 15, 2019 · 0 comments
Open

Data Fetching #4

DoodlingDev opened this issue Aug 15, 2019 · 0 comments

Comments

@DoodlingDev
Copy link
Contributor

DoodlingDev commented Aug 15, 2019

The front end will need to grab data from the backend via the API.

Set up a mechanism that encapsulates the data fetching. Using it should be as easy as importing the module and calling a method, abstract away the api call.

Out of scope for this issue: Using the fetching module in the React component. Just make calls and handle responses into data that can be consumed later.

Dev notes

  • Promises and async/await both available
  • Don't forget to test!
  • The needs are small now, but consider the possibility of needing to add a library or other mechanism when deciding on an implementation.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant