0👍
well, for me in such a case I will follow "when in doubt, split it out".
splitting the files and dividing the responsibility is always better, I prefer to put all the API calls and vuex tools in a separated directory, and using slots in the reusable components.
here are 2 articles I found for most common tips regarding VueJs best practices
https://www.telerik.com/blogs/10-good-practices-building-maintaining-large-vuejs-projects
https://itnext.io/how-to-structure-my-vue-js-project-e4468db005ac
- [Vuejs]-Why is firebase authentication not persisting on refresh in Ionic with Vue and Pinia?
- [Vuejs]-Vuedraggable / SortableJS ability to move elements in and out of groups
Source:stackexchange.com