this post was submitted on 21 Oct 2025
5 points (100.0% liked)

Vue.js

579 readers
1 users here now

founded 2 years ago
MODERATORS
 

Hi there, I'm working on a new app with Vuejs 3 and I wonder what are the good practice to architecture the app and to handle guards, JWT token refresh, reactivity and not having spaghetti code.

I started with the basic Vuetify app and added Pinia and the vue-router. ๐Ÿค 

One problem I want to solve is how to get the list to populate the first page with a list of objects, lets say a book list. Right now I created a store.books list and an action to call the API, according to the doc ( https://pinia.vuejs.org/core-concepts/actions.html ). But then I have to call the action when the user log in, or when the component is mounted, or when there is a refresh.

I found it not very DRY and just not smart, so I need some help and good doc to understand how to structure my app.

Thank you ๐Ÿ˜Œ

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here