Closed nhunzaker closed 6 years ago
http://code.viget.com/microcosm/api/action-form.html
repo.addDomain('count', { getInitialState () { return 0 }, increase (count, amount) { return count + amount }, register () { return { [increaseCount] : this.increase } } })
The payload is wrong in increase. It should be:
increase
repo.addDomain('count', { getInitialState () { return 0 }, increase (count, { amount }) { return count + amount }, register () { return { [increaseCount] : this.increase } } })
http://code.viget.com/microcosm/api/action-form.html
The payload is wrong in
increase
. It should be: