goatslacker / alt

Isomorphic flux implementation
http://alt.js.org/
3.45k stars 322 forks source link

this.dispatch is not a function #576

Closed mkotar closed 8 years ago

mkotar commented 8 years ago

I am not able to dispatch anything in my actions

Uncaught (in promise) TypeError: this.dispatch is not a function(…)

example: setData(data) { this.dispatch(data); }

also i am not able to call any action from another action by using this.actions.someAction

and when action doesn't dispatch anything i get this: ReferenceError: An action was called but nothing was dispatched(…)

goatslacker commented 8 years ago

https://github.com/goatslacker/alt/blob/master/CHANGELOG.md#breaking-changes

There's an upgrade guide there too.

mkotar commented 8 years ago

Thanks!