yarkovaleksei / vue2-storage

Wrapper over browser storage for JavaScript or Vue.js app

Home Page:http://yarkovaleksei.github.io/vue2-storage/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot initialize 2 storages at the same time - missing exports

simahawk opened this issue · comments

vue & vue2-storage version

2.6.11, 5.0.0

Steps to reproduce

Try to import the base class instead of the whole plugin and initialize more than one storage.

What is Expected?

I should be able to import the storage class and initialize extra storage instead of being forced to use only the one added on the root by the plugin installer.

What is actually happening?

Apparently you can't do that.

FTR I've posted a question here https://stackoverflow.com/questions/61934431/how-to-use-two-different-types-of-storage-at-the-same-time to see if anyone managed to do this w/out hacks but I got no answer.

Hi @simahawk ! Updated the package to version 6.0.0.

Great, thanks!