Skip to content

Fix patches dispatched after mutate methods

Compare
Choose a tag to compare
@cherifGsoul cherifGsoul released this 22 May 21:04
· 13 commits to master since this release
const myList = new ObservableArray([0,1]);
myList.push("I am going to hide some changes.");
		
canReflect.onPatches(myList, function (patches) {
    console.log(patches[0].insert[0]);   // -> 'Patched after push'
});
	
myList[1] = "Patched after push";

#81