You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2022. It is now read-only.
I am using vuex-persistedstate in my Nuxt.js projects. I am wondering how this Vuex plugin handles object variables inside my store? I am seeing strange behaviours.
Every time I hard-refresh my app [Command-R] my array inside store duplicates elements. Does this plugin adds values to store arrays?
My store is initialised like this:
import UsersTable from '@/assets/tables/users'
export const state = () => ({
usersTable: UsersTable
})
Now after each refresh my store.usersTable.columns double... I am not sure what is happening here but I suspect that vuex-persistedstate plugin pushes values from local storage after the store get's initialised. Is this true?
If yes then this is questionable behaviour...? Anyone else having these problems?