Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
madzanderzen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
madzanderzen
13y ago
Just one last question... Say I have something like a button with an action, and the action has a cell whose value is used when the action is executed by clicking the button. If I create the button in a bind, and the cell in the action is a
2.
▲
by
madzanderzen
13y ago
Nice! Thanks for taking the time to explain this :-)
3.
▲
by
madzanderzen
13y ago
Ahh, you're putting the entire UI in binds. That's a really clever way to handle the lifecycle of the listeners! bind is "stupid" in the way that it completely recalculates a cells value on any change of a cell it's
4.
▲
by
madzanderzen
13y ago
Thanks for the explanation in the link. The problem that is described in the link is clearly solvable, however what I'm referring to is more fundamental. I'm not talking about nested binds, but just a simple bind such as "z =
5.
▲
by
madzanderzen
13y ago
"z = bind -> x.get() + y.get()" seems nice, but when are the attached listeners removed again? Typically this is solved with weak listeners, but Javascript doesn't support weak references. I'm worried that this librar