Skip to content

Commit

Permalink
make sure the collections track themselves the same way if accessed a…
Browse files Browse the repository at this point in the history
…s their read-only variants (see #34)
  • Loading branch information
nadako committed Dec 13, 2024
1 parent b17b6a7 commit 943c35a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ partial class ObservableDictionary<TKey, TValue> : Observable<IReadOnlyDictionar
{
IReadOnlyDictionary<TKey, TValue> Observable<IReadOnlyDictionary<TKey, TValue>>.Value
{
get => AutoObservable.Track<IReadOnlyDictionary<TKey, TValue>>(this);
get => AutoObservable.Track<ObservableDictionary<TKey, TValue>>(this).entries;
}

IDisposable Observable<IReadOnlyDictionary<TKey, TValue>>.Bind(Action<IReadOnlyDictionary<TKey, TValue>> callback, IEqualityComparer<IReadOnlyDictionary<TKey, TValue>> comparer, Scheduler scheduler)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ partial class ObservableList<T> : Observable<IReadOnlyList<T>>, DispatchingObser
{
IReadOnlyList<T> Observable<IReadOnlyList<T>>.Value
{
get => AutoObservable.Track<IReadOnlyList<T>>(this);
get => AutoObservable.Track<ObservableList<T>>(this).entries;
}

IDisposable Observable<IReadOnlyList<T>>.Bind(Action<IReadOnlyList<T>> callback, IEqualityComparer<IReadOnlyList<T>> comparer, Scheduler scheduler)
Expand Down

0 comments on commit 943c35a

Please sign in to comment.