Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

FutureWeb's avatar

Vue 3 Reload component in persistent layout

Hi Larapeeps,

I have a vue component which allows selection of a category what I want to do is reload another component which lives in a persistent layout:

BaseLayout -> Header -> Menu BaseLayout: <template><Header/> <slot/> <Footer/> Header: <template><Menu/><OtherStuff/></template>

PageComponent inherits the above from the PageComponent a modal is launched onMounted here a category is selected once selected the modal closes. What I need to do is reload the Menu component which is nested in the BaseLayout as shown above

0 likes
2 replies
tykus's avatar
tykus
Best Answer
Level 104

AFAIK with persistent layouts the Page and Layout are purposefully decoupled, so there is no direct communication between them; instead, you could use an Event Bus.

Please or to participate in this conversation.