alt v0.13.11 Release Notes
-
➕ Added
- ➕ Added access to the internal EventEmitter used by the store. This can be access on the store instance by using
getEventEmitter()
and can be used for custom events. commit - ➕ Added a setState method for syntactic sugar which sets the state in the instance variables inside your store and then emits a change event. commit
- ➕ Added emitChange method. No more
this.getInstance().emitChange
, now you can justthis.emitChange()
from inside a store. commit - ➕ Added syntactic sugar for waitFor.
waitFor
now takes in a splat or array of stores or dispatch tokens. commit - The
alt
instance now gets passed to the store constructor as well as the actions constructor. commit - ActionListener is a util that allows you to listen in on specific actions. Now it's even more lightweight if you want to listen in on a specific action but don't want the weight of a store. This comes as a util meaning it doesn't increase the size of core alt. Use it if you need it. commit
🛠 Fixed
- ➕ addStore now has the
saveStore
parameter as well. commit
- ➕ Added access to the internal EventEmitter used by the store. This can be access on the store instance by using