derbyjs / racer

Realtime model synchronization engine for Node.js
1.19k stars 118 forks source link

Array mutations don't fire change events for lengths #90

Closed SLaks closed 5 months ago

SLaks commented 11 years ago

If I add or remove an item from an array (eg, if a query result changes), no change event is raised for the array's length.

It looks like Derby has special code that will update bindings to array lengths when the array changes, reducing the impact of this bug.

However, if I make a ref to an array length, Derby does not handle it, so bindings to the ref never update.

Racer should catch mutation events on arrays and raise a set event for length.

craigbeck commented 5 months ago

Thanks for your contributing your issue.

We have recently been actively updating the Derby and Racer packages, and both repos are now in Typescript and published with types on npm. As we have quite a few old issues open we have made the decision to close out of date issues.

If this issue still matters to you we encourage reproducing against the current versions of the repo and opening a new issue.