-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cacheData
in a BindingSeq
should be re-calculated when re-watching the BindingSeq
#56
Comments
There should be a re-calculation of |
cacheData
in a BindingSeq
should be re-calculated when re-watching the BindingSeq
Another example written by @kahliburke : https://scalafiddle.io/sf/HX9dhMN/3 |
Since the |
Also we can remove the initialization of |
I have tried some of the recommended changes which have not resolved the issue so far. While debugging it seemed that the use of a conditional was part of the issue, i.e.
will show the issue while
seems to work properly, with no other changes. One thing I did notice that seems like a bug is that in FlatMapBinding.removePatchedListener there is a mistaken call for adding the patched listener to the children instead of removing it.
|
Indeed. Mind sending a PR?
2017-08-10 3:20 GMT+08:00 Kahli Burke <[email protected]>:
… I have tried some of the recommended changes which have not resolved the
issue so far. While debugging it seemed that the use of a conditional was
part of the issue, i.e.
@dom val elemDisplay = { if (show.bind) <div>{elems.bind}</div> else <!--
Nothing --> }
will show the issue while
@dom val elemDisplay = { val e = elems.bind if (show.bind) <div>{e}</div>
else <!-- Nothing --> }
seems to work properly, with no other changes.
One thing I did notice that seems like a bug is that in FlatMapBinding.removePatchedListener
there is a mistaken call for adding the patched listener to the children
instead of removing it.
https://github.com/ThoughtWorksInc/Binding.scala/blob/
9513541/Binding/src/main/
scala/com/thoughtworks/binding/Binding.scala#L880
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAktuiSIzeoeZGZ1oMAsxOPkgONJqU-nks5sWgZxgaJpZM4OmCYa>
.
--
杨博 (Yang Bo)
|
There already is one. :) |
Reported by @kahliburke on Gitter:
https://gitter.im/ThoughtWorksInc/Binding.scala?at=597958a6329651f46ec7752c
The text was updated successfully, but these errors were encountered: