Have you ever used an event bus in Vue 2 and don’t know how to recreate it in Vue 3? The current version of the Inspector frontend application uses a global event bus. It’s needed to make the root component of the application (App.vue) aware of some particular events fired inside the component chain.
There are basically two ways of making unrelated components communicate with each other: Vuex Event Bus https://vuex.vuejs.org/ is a state management library.
So you could use an instance of Vue as event bus: export const bus = new Vue(); In Vue 3, Vue is not a constructor anymore, and Vue.createApp({}); returns an object that has no $on and $emit methods.