Handling events in between components in vue3 under the same parent component

129 views Asked by At

I'm trying to build a component with multiple child components that pass around events. Each component will listen to the next in the chain and handle the event with some logic and pass another event corresponding to it and the next component in the chain will handle it until the last one in the flow chain.

I've tried multiple solutions and seem to not figure out the way to do it in vue yet. if you have any idea of how to implement something like that I would appreciate it.

fyi, I'm using vue 3 with ts and vite. Thanks in advance :)

0

There are 0 answers