Skip to content

Patches are not dispatched after mutation methods usage #82

@cherifGsoul

Description

@cherifGsoul

For exemple this doesn't work:

const myList = new ObservableArray([0,1]);
myList.push("I am going to hide some changes.");
		
//not working
canReflect.onPatches(myList, function (patches) {
    console.log(patches[0].insert[0]);   // -> 'Patched after push' not working
});
	
myList[1] = "Patched after push";

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