thomasboyt / redux-happy-async

async state with less boilerplate
MIT License
29 stars 0 forks source link

Dispatched ASYNC_UPDATE causes re-render before success reducer is called #10

Closed thomasboyt closed 8 years ago

thomasboyt commented 8 years ago

https://github.com/thomasboyt/redux-happy-async/blob/master/src/asyncMiddleware.js#L10-L13

this re-renders before the success reducer is called meaning that if you naively do something like

if (loadingState.loaded) {
  // do something with loaded state
}

it will not work