I have 1 master component and 2 childs. In the master i do :
<keep-alive>
<component :is="getChild" @onrender="childRender" />
</keep-alive>
So I switch from child 1 to child 2 and keep state of each.
- getChild switch child component (buttons... not the problem here).
- onrender is emit when child load
- childRender just write a console.log.
Problem : when we use keep-alive, the child component is not re-render and when i use onCreated or onMounted or onUpdated... nothing append and it's normal. So how catch a "render" event with keep-alive ?
I know i can use a bus or a store like Vuex to keep state... but i don't want it if possible.
Thanks.