From 014f212c4467d372a574d031a1a4af86feed2dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=AF=20=E6=96=8C?= Date: Thu, 24 Mar 2016 13:44:05 +0900 Subject: [PATCH] dispatch receivedAction when it's not dataloader action --- src/createDataLoaderMiddleware.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/createDataLoaderMiddleware.js b/src/createDataLoaderMiddleware.js index c0366dd..be025c7 100644 --- a/src/createDataLoaderMiddleware.js +++ b/src/createDataLoaderMiddleware.js @@ -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) {