Skip to content

Commit

Permalink
Merge pull request #13 from tomatau/master
Browse files Browse the repository at this point in the history
Action methods return promises
  • Loading branch information
kenwheeler committed Nov 22, 2014
2 parents 79ef6b9 + 238da55 commit 573753b
Show file tree
Hide file tree
Showing 6 changed files with 1,118 additions and 23 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ Adding actions to your app looks like this:
}
});

All actions methods return promise objects so that components can respond to long functions. The promise will be resolved with no parameters as information should travel through the dispatcher and stores. To reject the promise, return a falsy value from the action's method. The dispatcher will not be called if the returned value is falsy or has no actionType.

## API

###McFly
Expand Down
Loading

0 comments on commit 573753b

Please sign in to comment.