soc221b/pinia-plugin-persistedstate-2

pinia-plugin-persistedstate-2 plugin supports async storage?

rendomnet opened this issue · 3 comments

Can I use it with chrome storage? https://developer.chrome.com/docs/extensions/reference/storage
Also is there an event when store is rehydrated first time?

Yes

This is different storage.
I'm talking about chrome storage for browser extensions it is async.
For some funny reason they called it storage too.

Anyway it is working with https://developer.chrome.com/docs/extensions/reference/storage

This is different storage. I'm talking about chrome storage for browser extensions it is async. For some funny reason they called it storage too.

Anyway it is working with developer.chrome.com/docs/extensions/reference/storage

As I know, this plugin accepts any synchronous/asynchronous storage - you just need to write a simple wrapper for setItem, getItem and removeItem.