Repository navigation
Reduks modules overhaul and more
Pre-release
Pre-release
Better actions / better ActionWithContext support:
- added standard
INITaction, that is dispatched whenreplaceReducer()is called and is used as default StartAction inReduksModuledefinition andSingleModuleReduksActivity - Create actions with context with
..operator:ctx1..SomeAction()create anActionWithContextwithctx1asReduksContextandSomeAction()as wrapped action. If the ctx1 is actually empty, then the '..' operator returns the unwrapped action instead. - added action matchers
matchAandisAforActionWithContextin awhenexpression. seeActionWithContextTestfor examples:
Reduks modules ovehaul:
- Performance of Reduks modules greatly improved and code greatly simplified: method count for core reduced by almost 20%
Reduksinterface new extension functionssubStore,subState,subDispatcherfor making it easier to interact with substores in multimodule stores- added support for default
ReduksContextequal to the substate classsimpleNamefor making it easier to define multimodule stores - defining a
StoreSubscriberBuilderand an initial action is now optional when defining Reduks modules (the default INIT start action will be used)
Integration of Reduks Bus with modules:
- for a multimodule store, the reduks bus of the first substate that make a bus available will be used as the bus for the multimodule store
Various other improvements:
dispatch()andstateare now extension functions forReduksinterface- added
StoreSubscriberFnwith second argument that is an automatically definedSelectorBuilderobject that you can use for creating your selectors to use in the StoreSubscriber. - removed
StoreCreatorargument ininitReduksforReduksActivityand defined instead a separate
method inReduksActivityinterface for providing thestoreCreator(for better integration with Reduks modules)
Bug fix:
- Removed StartKovenant/StopKovenant from KovenantReduksActivity
Dependencies updated:
- kotlin : 1.0.5
- kovenant : 3.3.0
- android support lib: 24.2.1
- gson :2.8.0