Skip to content

Dispatch patches for item mutation with 0 value

Compare
Choose a tag to compare
@cherifGsoul cherifGsoul released this 19 May 22:14
· 15 commits to master since this release

This fixes event dispatching when an item gets mutated with 0 integer value:

const order = new ObservableArray([0, 1]);
canReflect.onPatches(order, (patches) => {
       console.log(order[1]); // -> 0
});
order[1] = 0;

#80