forum.getkirby.com

Vue - Lessons learned

7/6/2019Updated 2/27/2025

Excerpt

## Vue Cli is not for me I have also tested Vue Cli. It took a while to install and it added 100 Mb to my disc. It also added a structure and a user interface to add modules like Sass etc. Everything worked, but I felt it was too much magic for my taste. Something like WordPress or maybe even Skynet was taking over. I wanted to regain control, so I ended up using plain javascript files and Gulp to bundle and compress my javascript and my scss files. … Another reason was that I ran a `v-if` on `data.length` on my parent component. It used a big data object with hundreds of nested objects. When I changed a value inside the data object, it needed to reload everything again for some reason. I saw someone on Stackoverflow having the same problem. My solution was to cache the length into another variable that only was triggered when created. Both of the issues I was dealing with was due to the fact that it was too much reactivity involved. It’s often the strength of Vue but can cause problems as well.

Source URL

https://forum.getkirby.com/t/vue-lessons-learned/14838

Related Pain Points