9

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...

Comments
  • 1
    amm 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
  • 0
    1. Learn
    2. Rant
  • 0
    use vuex maybe?
  • 0
    @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.
  • 1
    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.
Add Comment