meteor-rxjs icon indicating copy to clipboard operation
meteor-rxjs copied to clipboard

ObservableCursor aliases all lists it passes to callbacks

Open domq opened this issue 5 years ago • 0 comments

There is only one _this._data array per ObservableCursor, that gets passed around by reference to all _observers every time _handleChange runs. As a result, downstream consumers that try to filter out null changes (such as Angular's | async pipe, which relies on WrappedValue) get confused, as they compare old and new values by keeping a reference to the old one.

#100 might be a symptom of the same cause.

domq avatar Nov 07 '19 15:11 domq