Pinia export const initData = function () { const instance = useCounterStore() // listen on change, then save to localStorage instance.$subscribe((mutation, state) => { localStorage.setItem(instance.$id, JSON.stringify(state)) ...
hn.0xbf.me1 min readNo responses yet.