Skip to content

Commit

Permalink
fix: redux dataloader request action is plain object
Browse files Browse the repository at this point in the history
  • Loading branch information
kouhin committed Mar 24, 2016
1 parent 3e58567 commit c058ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-dataloader",
"version": "0.0.5",
"version": "0.0.6",
"description": "Loads async data for Redux apps focusing on preventing duplicated requests and dealing with async dependencies.",
"main": "lib/index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/createDataLoaderMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function createDataLoaderMiddleware (loaders, args) {
if (asyncAction.type !== LOAD_DATA_REQUEST_ACTION) {
return next(receivedAction)
}
next(receivedAction) // dispatch data loader request action
next(asyncAction) // dispatch data loader request action
const { action } = asyncAction.payload
const runningTaskKey = findRunningTaskKey(runningTasks, action)
if (runningTaskKey) {
Expand Down

0 comments on commit c058ff4

Please sign in to comment.