Open
Description
The following scenario doesn't work (explicitly deleting items by modifying array.length)
it("should observe explicit array length changes", () => {
let dummy;
const list = observable(["Hello", "World"]);
observe(() => {
dummy = list[0];
});
expect(dummy).to.equal("Hello");
list.length = 0;
expect(dummy).to.equal(undefined);
});
Metadata
Metadata
Assignees
Labels
No labels