From 6bb27c60d5579c9811c1dbbc71721e8027d2bd2d Mon Sep 17 00:00:00 2001 From: Luke Sanwick Date: Wed, 27 Jan 2016 15:32:55 -0800 Subject: [PATCH] Remove reference to this.dispatch this.dispatch no longer exists, having it in the docs is confusing --- guides/getting-started/actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/getting-started/actions.md b/guides/getting-started/actions.md index a29a77bb..7b520241 100644 --- a/guides/getting-started/actions.md +++ b/guides/getting-started/actions.md @@ -11,7 +11,7 @@ The first actions we create will be simple, they'll take in an array of location We create an action by creating a class, the class' prototype methods will become the actions. The class syntax is completely optional you can use regular constructors and prototypes. -Inside those actions you can use `this.dispatch` to dispatch your payload through the Dispatcher and onto the stores. Finally, make sure you export the created actions using `alt.createActions`. +Whatever value you return from your action will be sent through the Dispatcher and onto the stores. Finally, make sure you export the created actions using `alt.createActions`. ---