persist-and-sync
persist-and-sync copied to clipboard
Support for chrome.storage API
I'd like to have support for chrome local storage (local/session/sync), because using localStorage does not work for a chrome extension because it's in a sandboxed environment and you have to use the native chrome.storage interface...
Here is a fairly simple implementation using native zustand persist middleware implementation: https://github.com/brokeboiflex/zustand-chrome-storage