Question regarding Vue/Vuex efficiency and best practices.
I am working with an API that returns a paginated data-set of 50 products, which I am storing in a Vuex store.
When displaying all products, I iterate over the Vuex store.
Now, for individual product routes, I am debating whether to fetch the product directly from the Vuex store for faster loading or to make a new request to the API.
The dilemma lies in the fact that the initial API request may return more data than initially needed, which seems inefficient.
Any thoughts on this decision? I would appreciate a second opinion.
Furthermore, when using Vuex, is it advisable to keep appending data to the store as users cycle through more products, or should I maintain a set number of records?
Thank you!
Phil