Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
armando817yamm there are a lot of different ways to solve that problem or handler that, Event Bus, emit events, pass props as functions and so on. but yeah if you know well how it works you can create a nice architecture to build apps so easy
-
@tinybyte Definitely was a mistake to not use vuex. It would solve lot of problems but I have to finish this today and I have no time to rewrite all data to vuex. Maybe later when no deadlines will be coming my way.
-
well vuex solves your data and state management but for events you definitly need to bind them to vDOM and vm of vue, which resolves most issues.
If this does sound too complicated you can still add event listeners to a higher order component creation that emits the event to the vue event system. Just make sure to remove the event once the component is destroyed.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo36My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
Vue is amazing at all but fuck...never try to create some kind of layer on top of it or use external events inside. It is hell, trust me. I hate myself so much now. Shieet.
Now I am crying here with fucked up data flow and such complex hard to debug creature...
rant
fml