Answer the question
In order to leave comments, you need to log in
How to cache action in Vuex?
I use Vuex in the project and decided to implement data caching.
The principle of the application is as follows - I click on a 'block' in the web interface, on click a URL with its parameters is generated and a request is sent to the server, after which information about this 'block' is displayed.
To speed up the process, I decided to implement a cache, so that if I click again on the same 'block' after a short period of time, the data will be taken from the cache, and not send the request again.
When I googled I found this resource: https://github.com/superwf/vuex-cache
It seems to be, but I don’t understand how to use it (
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question