Explore all vue topics

2 votes 0 answers 465 views
Besides using a state manager, How do i pass on an emit to the root element without emit drilling?

Is there a way for me to pass on a emit to the root component instead of drilling my way(e.g emit to the parent and then the parent emits the data back to the root component)? I have always had this problem although a quick solution is using Pinia State manager but what if i can't use state managers just sayin'.

avatar
sdr9cxzid7y7pij