New reducer format
L3P3 opened this issue · comments
Len commented
Instead of returning a dispatch method, return an object with methods for each action.
const [count, {increment}] = hook_model({
init: () => 0,
increment: n => n+1,
});
Both reducer hooks should be deprecated.
Len commented
Actually removed both old reducer hooks to save space.