Skip to content

Events for mutation with 0 integer value are disptached #79

@cherifGsoul

Description

@cherifGsoul

Set an item value to 0 in integer type doesn't dispatch events:

This example is broken

const order = new ObservableArray([0, 1]);
canReflect.onPatches(order, (patches) => {
     console.log(patches); 
});
order[1] = 0; // will not trigger event
order[1] = 3; // will trigger event

hadOwn ? (newValue ? "set" : "remove") : "add",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions