We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it expected behaviour that the addAfterDestroyHook is called twice? E.g.:
addAfterDestroyHook
class App : Application(){ var obsCreatenum = ObservableValue(1) var obsDestroynum = ObservableValue(0) override fun start() { root("kvapp") { button("wet trout").onClick{ obsCreatenum.value++ } div().bind(obsCreatenum){ createnum -> p { +"Hello there, number $createnum" }.addAfterDestroyHook { obsDestroynum.value++ } } div().bind(obsDestroynum){ destroynum -> p{ +"Destroyed: $destroynum" } } } } }
The text was updated successfully, but these errors were encountered:
Hello. It's a bug, but a nasty one! Thanks for reporting, I'll try to fix this.
Sorry, something went wrong.
The addAfterDestroyHook called twice (#547)
cf1f5c7
Works now in 8.1.0. Thank you.
rjaros
No branches or pull requests
Is it expected behaviour that the
addAfterDestroyHook
is called twice?E.g.:
The text was updated successfully, but these errors were encountered: