Closed fbaierl closed 4 years ago
Is there currently a way to update a Var without triggering the change propagation?
Var
E.g.:
val a = Var(1) var count = 0 val o = a.triggerLater { count = a.now + 1 } println(count) // 1 a.updateWithoutPropagation(4) println(count) // 1 a.propagate() println(count) // 5
I found out that this can be done using: Var.Assignment(a, 4).set(), so I am closing this issue.
Var.Assignment(a, 4).set()
Is there currently a way to update a
Var
without triggering the change propagation?E.g.: