G
G
GrimJack2017-08-20 19:04:39
Vue.js
GrimJack, 2017-08-20 19:04:39

How to cache vuex store?

There is a vuex storage, it stores (roughly speaking) two objects - user data (name and all that) and access_data (tokens are stored for the application to work with api)
The problem is that when I refresh the page (f5) the storage is cleared
Actually the question is, how to cache storage? Or is it worth using something else (what?) for these purposes?
Googled vuex caching, offered caches for heteros. As I understand it, this is not what I need

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-08-20
@GrimJack

https://github.com/robinvdvleuten/vuex-persistedstate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question