bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.77k stars 1.32k forks source link

Vuex helpers performance #150

Closed Thomerdos closed 5 years ago

Thomerdos commented 5 years ago

Hello,

Juste a simple question about the state helper file helper.js. Let's say for example that I import a helper that includes about ten actions when I only use one, can this have an impact in terms of performance on the scale of several tens or even hundreds of components? In other words, is it better to import only the datas actually used in the component or does it have little impact?

Thanks in advance.

chrisvfritz commented 5 years ago

Great question! There's extremely little impact to performance. 🙂