Skip to content

Commit

Permalink
### 1.2.19
Browse files Browse the repository at this point in the history
* guarded conditional LevelChangedException
  • Loading branch information
aszabo314 committed Jan 27, 2025
1 parent 5e83dac commit f45988e
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.19
* guarded conditional LevelChangedException

### 1.2.18
* removed LevelChangedException

Expand Down
8 changes: 4 additions & 4 deletions src/FSharp.Data.Adaptive/Core/AdaptiveObject.fs
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ module AdadptiveObjectExtensions =
if depth > 1 then Transaction.RunningLevel - 1
else Transaction.RunningLevel

// if AdaptiveObject.UnsafePerformLevelChecking && x.Level > maxAllowedLevel then
// //printfn "%A tried to pull from level %A but has level %A" top.Id level top.Level
// // all greater pulls would be from the future
// raise <| LevelChangedException(x.Level + depth)
if AdaptiveObject.UnsafePerformLevelChecking && x.Level > maxAllowedLevel then
//printfn "%A tried to pull from level %A but has level %A" top.Id level top.Level
// all greater pulls would be from the future
raise <| LevelChangedException(x.Level + depth)

res <- r

Expand Down

0 comments on commit f45988e

Please sign in to comment.