Do nested binds/subscribes work? I am trying to bi...
# kvision
s
Do nested binds/subscribes work? I am trying to bind a tooltips content in this way:
Copy code
Div().bind(playerWeaponStore) { weapon ->
    for (skill in weapon.skills) {
        button("")).bind(playerStore) {
            enableTooltip(TooltipOptions(
                    title = "Player life is <b>${it.life}</b>",
                    rich = true
            ))
        }
    }
}
or
Copy code
Div().bind(playerWeaponStore) { weapon ->
    for (skill in weapon.skills) {
        button("") {
            playerStore.subscribe {
                enableTooltip(TooltipOptions(
                        title = "Player life is <b>${it.life}</b>",
                        rich = true
                ))
            }
        }
    }
}
Won't update when
playerStore
fires an event, but will when the parent bind
playerWeaponStore
does.