https://kotlinlang.org logo
#kvision
Title
# kvision
t

Tomas Kormanak

09/26/2022, 3:20 PM
Hi, I am having an issue with tab panel. It seems after upgrading 4->5 function
afterInsert(node:Vnode)
is not called on tab child component.
r

Robert Jaros

09/26/2022, 4:29 PM
If you override
afterInsert
in your class and it's not called when you want it to, you probably need to add
useSnabbdomDistinctKey()
in your class init block. See: https://kvision.gitbook.io/kvision-guide/2.-frontend-development-guide/dom-bindings#lifecycle-hooks
t

Tomas Kormanak

09/27/2022, 8:08 AM
Thank you, that fixed it.
4 Views