Skip to content

Commit 166cdb2

Browse files
committed
fixed exception
1 parent 297000f commit 166cdb2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.2.22
2+
- fixed exception in ASet.ofSetTree/ofListTree
3+
14
### 1.2.21
25
- fixed ASet.ofSetTree/ofListTree: ignore nested dirty updates
36

src/FSharp.Data.Adaptive/CollectionExtensions.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ module CollectionExtensions =
324324
// -> prevent updates to be included in delta computation
325325
if subReader.OutOfDate then
326326
removedDirty.Add(subReader) |> ignore
327-
elif not (subReader.Outputs.Remove x) then
328-
unexpected()
327+
else
328+
subReader.Outputs.Remove x |> ignore // possible that we are not registered as output?
329329

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

403403
delta <- delta.Add (Rem n)
404404
for old in subReader.State do

0 commit comments

Comments
 (0)