HackBrexit / MinistersUnderTheInfluence

MIT License
6 stars 10 forks source link

ui: Use redux-promise-middleware to asynchronously request entity lists from the API #162

Open aspiers opened 7 years ago

aspiers commented 7 years ago

Add a stub EntityListContainer component, and from its componentWillMount, use redux-promise-middleware (which is similar to thunk but even more ideal for making asynchronous API calls) to fetch a list of all entities from the API.

Currently the actions and API call are triggered correctly, but we still need to add reducers to handle the actions, and then we need to hook the resulting store data up to the UI to actually display the list of entities retrieved.

This is part one of the implementation of #143.