fluxxor v1.5.0 Release Notes
-
โ 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 logging Store#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)
- You can add stores and actions to existing Flux instances via