use-chrome-storage
use-chrome-storage copied to clipboard
Stored objects and arrays retrieved as string
const [foo] = useChromeStorageLocal<MyObject>("foo", {});
This usage returns string
instead of object.
Such code returns an object for me.
Most likely you have a string for your foo
stored in chrome.storage.local