Answer the question
In order to leave comments, you need to log in
Is it possible to monitor LocalStorage?
Hello! There are 2 tabs (same page). In one tab, I change the value of the name key in localStorage. Is it possible to somehow catch this change on the second tab (Computed, Watch)?
Answer the question
In order to leave comments, you need to log in
created() {
window.addEventListener('storage', () => {
//что-то делаем когда меняется local storage
})
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question