Skip to content

Commit

Permalink
fixed exception
Browse files Browse the repository at this point in the history
  • Loading branch information
luithefirst committed Feb 21, 2025
1 parent 297000f commit 166cdb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.2.22
- fixed exception in ASet.ofSetTree/ofListTree

### 1.2.21
- fixed ASet.ofSetTree/ofListTree: ignore nested dirty updates

Expand Down
8 changes: 4 additions & 4 deletions src/FSharp.Data.Adaptive/CollectionExtensions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ module CollectionExtensions =
// -> prevent updates to be included in delta computation
if subReader.OutOfDate then
removedDirty.Add(subReader) |> ignore
elif not (subReader.Outputs.Remove x) then
unexpected()
else
subReader.Outputs.Remove x |> ignore // possible that we are not registered as output?

delta <- delta.Add (Rem n)
subReader.State |> IndexList.iteri (fun i old ->
Expand Down Expand Up @@ -397,8 +397,8 @@ module CollectionExtensions =
// -> prevent updates to be included in delta computation
if subReader.OutOfDate then
removedDirty.Add(subReader) |> ignore
elif not (subReader.Outputs.Remove x) then
unexpected()
else
subReader.Outputs.Remove x |> ignore // possible that we are not registred as output?

delta <- delta.Add (Rem n)
for old in subReader.State do
Expand Down

0 comments on commit 166cdb2

Please sign in to comment.