This commit is contained in:
Yanick Champoux 2021-05-01 18:45:27 -04:00
parent 86325f8ed8
commit 29255ea347
2 changed files with 12 additions and 12 deletions

View File

@ -4,19 +4,19 @@ import u from "updeep";
import { createSelector } from "reselect";
const dux = new Updux({
initial: {
space: 0,
cost: 0,
mass: 0,
},
initial: {
space: 0,
cost: 0,
mass: 0,
},
});
const set_cargo = action('set_cargo',payload());
const set_cargo = action("set_cargo", payload());
dux.addMutation(set_cargo, space => () => ({
space,
cost: 0,
mass: space,
dux.addMutation(set_cargo, (space) => () => ({
space,
cost: 0,
mass: space,
}));
export default dux.asDux;