nestdotland/nest.land

Integrate vuex to store and handle state.

Keimeno opened this issue · 3 comments

Is your feature request related to a problem? If so, please describe.
The problem currently is, if we route to /gallery it sends a requests to receive information about 24 packages. However if we go to any other route and come back to /gallery later, it refetches those 24 packages.

Describe the solution you'd like
This could be avoided by using vuex to persist the data until we reload. It will also make the code cleaner, as the api action is abstracted from the vue component.

I think vuex will be great! We could also add i18n support with it.

t8 commented

Was just about to say that myself! I totally agree. This would be very useful, while also reducing the load on the API.

Would be interested in adding it myself. However it would make sense to do so after the Typescript migration.