Skip to content

Commit

Permalink
fix(list): notify subscribers of offline list changes
Browse files Browse the repository at this point in the history
Big thanks to @tja4472 for the solution to this one!

Related: adriancarriger#55
  • Loading branch information
adriancarriger committed Aug 12, 2017
1 parent a0952a3 commit a8760d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/list/internal-list-observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class InternalListObservable<T> extends ReplaySubject<T> {
if (newValue) { newValue.sort((a, b) => a.$key - b.$key); }

if (this.updated > 1 || (stringify(this.previousValue) !== stringify(newValue)) ) {
this.previousValue = newValue;
this.previousValue = Object.assign([], newValue);
this.next(newValue);
this.updated++;
}
Expand Down

0 comments on commit a8760d4

Please sign in to comment.