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
import Vuex from 'vuex';
import VuexPersistence from 'vuex-persist';
import localforage from 'localforage';
import syncDriver from 'localforage-webextensionstorage-driver/sync';
localforage.defineDriver(syncDriver).then(() => localforage.setDriver('webExtensionSyncStorage'));
const extensionStorage = new VuexPersistence({
storage: localforage,
asyncStorage: true,
});
const store = new Vuex.Store({
state: {
hello: 'world',
},
mutations: {},
actions: {},
plugins: [extensionStorage.plugin],
});
export default store;
The text was updated successfully, but these errors were encountered:
mrleblanc101
changed the title
Not sure how to use localForage (for chrome.storage.sync)
Not sure how to use chrome.storage.sync with localForage driver
Apr 4, 2023
mrleblanc101
changed the title
Not sure how to use chrome.storage.sync with localForage driver
Not sure how to use browser.storage.sync with localForage driver
Apr 4, 2023
I use esphen/localforage-webExtensionStorage-driver to add webextension storage support to localForage, but I'm not sure how to make this work with vuex-persist.
The text was updated successfully, but these errors were encountered: