Version 1.5.0
Additions/Non-Breaking Changes
- You can add stores and actions to existing Flux instances via
addStore
,addStores
,addAction
, andaddActions
(#68, #71, #77) Flux
instances are now EventEmitters, and emit a"dispatch"
event (withtype
andpayload
arguments) when an action callsthis.dispatch(type, payload)
, useful for cross-cutting concerns like loggingStore#bindActions
now takes a hash (similar to the staticactions
hash) in addition to an argument list (#51, #78)- Fluxxor will throw more descriptive errors in many situations that are obviously incorrect (for example, when an action handler is not defined, or an action type in
bindActions
is falsy)
Deprecations
Fluxxor.FluxChildMixin
is now deprecated; instead, useFluxMixin
anywhere you want access togetFlux()
(#59)