you to dispatch a function which will be called by redux- thunk middleware. ▸ redux-thunk will pass in dispatcher and getState functions so you can dispatch an action at the end of an async operation
describing what an action should look like. ▸ If we can make assumptions about the structure of actions, we can build better abstractions on top of them. ▸ Basically, action must be an object with a “type” property. ▸ Redux thunk dispatches functions, not FSA action objects
▸ Most redux promise middleware libraries are already FSA compliant. ▸ Promises are in the language and are built for async. ▸ Much easier to remember to catch errors and do things with it. ▸ Use pburtchaell/redux-promise-middleware. It’s the best one out there with good conventions.