Closed rendomnet closed 3 years ago
vuex-persistedstate
node
npm
yarn
Problem description: Fo Firefox and Web extensions we need to use browser.storage instead of Window.localStorage https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/local
How can I use browser.storage with vuex-persistedstate?
You can't. The browser.storage API is asynchronous, but the vuex-persistedstate expects synchronous storage.
vuex-persistedstate
version: 3.0.1node
version: v10.19.0npm
(oryarn
) version: 1.22.4Problem description: Fo Firefox and Web extensions we need to use browser.storage instead of Window.localStorage https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/local
How can I use browser.storage with vuex-persistedstate?