🥊 Tiny 200 byte functional event emitter / pubsub.
In this article I want to show you how I have implemented this pattern in my Nuxt 3 applications using Mitt which already provides full TypeScript support. To fully understand what's happening under the hood I recommend to have a quick read of Mitt documentation before continue reading.
Since the release of Vue 3, using a Vue instance as event bus is no longer the way to go. If we are looking to implement this pattern in our app we may require a library like Mitt, which was recommended by vuejs.org itself (I can't find it anymore in the docs but I am pretty sure it was there).
AWS Cloud-aware infrastructure-from-code toolbox [NEW]. Build cloud backends with Infrastructure-from-Code (IfC), a revolutionary technique for generating and updating cloud infrastructure. Try IfC with AWS and Klotho now (Now open-source)
Does vue 3 have global emit?
1 project | reddit.com/r/vuejs | 28 Dec 2022
State Management Question
1 project | reddit.com/r/sveltejs | 19 Nov 2022
Vue.js 3 이벤트 뻐-스
1 project | dev.to | 16 Oct 2022
I was asked to implement Event Emitter in an interview. How would you approach it? Link is attached.
Sibling component communication
1 project | reddit.com/r/vuejs | 8 Jan 2022