[Vuejs]-Should you prioritize passing props over API requests in your web app architecture?

0👍

I’m a fan of just passing the id of the data (as a route param or prop). But instead of requesting the data to the API, you could use the store. Check if the data is present (and not outdated) in your store and if no valid data is found in the store, you can request it from your backend database.

Link to Vuex store guide

Leave a comment