Cysharp / Cysharp/ObservableCollections

In .NET Framework, ObservableList.CreateView does not update with new items when they are added to the ObservableList.

Open
#123 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1k
Forks
73
Avg merge
5d 4h
Merged PRs (30d)
2

Description

same code:

var view = observableList.CreateView(x => x);
ItemsView = view.ToNotifyCollectionChanged(SynchronizationContextCollectionEventDispatcher.Current);

observableList.AddRange(new[] { 1, 2, 3, 4, 5 });

framework:
Image

core:

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported CreateView and ToNotifyCollectionChanged repro, then inspect how ObservableList.AddRange propagates changes to views. Run the sample on .NET Framework and compare the framework and core behavior shown in the issue. Done means adding items causes the created view and bound ItemsView to update.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.