vuex-multi-tab-state
vuex-multi-tab-state copied to clipboard
New values not set on next visit in the same browser
Problem
The problem that i am running into is that when i have visited my site that uses the multi tab state, if a new multi tab state value is added that value won't set in the local storage nor is it watchable with vuex.
The new value will only be set in the local storage when I start trying to use the value. But the watcher is then still not working, so i have to reload the page and then only the new values that i have used will be set in the local storage and will be watchable.
Private (edge) / incognito(chrome) tab
But when i use a new private tab or an incognito tab all the values including the new values will be set. (aka a browser that hasn’t visited the site before will only work as intended)
Question
Does anybody know how to fix this issue? Is there some code that I should use to fix this issue or is there a method that I should call to fix this issue?
Check out #63 you can try to fix it with something like this on page load:
window.localStorage.removeItem('vuex-multi-tab')
Check out #63 you can try to fix it with something like this on page load:
window.localStorage.removeItem('vuex-multi-tab')
It doesn't seem to remove the vuex-multi-tab at al, Or some how it seems be be readded some how without the new values.
I also used a test value to validate if i couldn't remove a localstorage value in that location, But that seems te work.
I will now look further into the other issue, that you have linked.