Skip to content

Commit

Permalink
dispatch receivedAction when it's not dataloader action
Browse files Browse the repository at this point in the history
  • Loading branch information
kouhin committed Mar 24, 2016
1 parent a9a34a1 commit 014f212
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/createDataLoaderMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ export default function createDataLoaderMiddleware (loaders, args) {

return receivedAction.then((asyncAction) => {
if (asyncAction.type !== LOAD_DATA_REQUEST_ACTION) {
return next(asyncAction)
return next(receivedAction)
}
next(receivedAction) // dispatch data loader request action
const { action } = asyncAction.payload
const runningTaskKey = findRunningTaskKey(runningTasks, action)
if (runningTaskKey) {
Expand Down

0 comments on commit 014f212

Please sign in to comment.