Closed
Description
Tested on 0.8.0-RC2
.
val p = Property(1)
val s = SeqProperty(1,2,3)
div(
produceWithNested(p) { case (v, nested) =>
div(
nested(repeat(s) { v2 =>
println((v, v2.get))
div().render
})
).render
}
).render
CallbackSequencer().sequence {
p.set(2)
s.set(Seq(4,5,6))
}
The code above prints:
(1,1)
(1,2)
(1,3)
(2,4)
(2,5)
(2,6)
(1,4)
(1,5)
(1,6)
The last 3 lines are unexpected. It seems CallbackSequencer
keeps the listener from SeqPropertyModifierUtils:108
and the handlePatch
method does not check if the binding was already killed.