Zedux has undergone massive overhauls in the last 2 years. It's time to bring these into master.
Changes include:
Rename almost everything - e.g. actor() -> creactActor(), react() -> createReducer(), transition() -> createMachine().
Rewrite the whole codebase in TypeScript and refine lots of those types.
Add some tests
Switch from rollup to webpack. Idk if I just wasn't good enough at webpack at first or if it was missing features. But it can do everything I want now.
Completely change how side effects work (this was initially the main purpose of this effects-model branch). Only stores themselves know about and handle side effects. There shouldn't be any need to create or handle side effects at any more granular level than that - Zedux stores can be as granular as you need. "Reactors" and the "processor layer" are therefore completely dead and will never be heard of again. The reducer layer remains unchanged.
Add some tools for handling side effects - store.action$ for easy from(store.action$) rxjs integration and applyMachineHooks to add onEnter and onLeave side effect "hooks" to state machines.
Start updating documentation. This still has a ways to go and is maybe pending an official React Zedux package update, for which some major undertakings are in the works. The main readme should at least be suitable for now.
Zedux has undergone massive overhauls in the last 2 years. It's time to bring these into master.
Changes include:
actor()
->creactActor()
,react()
->createReducer()
,transition()
->createMachine()
.effects-model
branch). Only stores themselves know about and handle side effects. There shouldn't be any need to create or handle side effects at any more granular level than that - Zedux stores can be as granular as you need. "Reactors" and the "processor layer" are therefore completely dead and will never be heard of again. The reducer layer remains unchanged.store.action$
for easyfrom(store.action$)
rxjs integration andapplyMachineHooks
to addonEnter
andonLeave
side effect "hooks" to state machines.