Skip to content

Commit 458ec67

Browse files
committed
- Allow actionDispatchers to return null
1 parent 64d7216 commit 458ec67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DefaultMixin.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ scopeSelector = (sel, self) -> ->
99

1010
# Bind an action to automatically dispatch to the right store.
1111
dispatchAction = (actionCreator, self) -> ->
12-
self.store.dispatch(actionCreator.apply(self, arguments))
12+
action = actionCreator.apply(self, arguments)
13+
if action? then self.store.dispatch(action)
1314

1415
# DefaultMixin is mixed into all component specs automatically by createClass.
1516
export default DefaultMixin = {

0 commit comments

Comments
 (0)