nuxt-session icon indicating copy to clipboard operation
nuxt-session copied to clipboard

Web Storage (localstorage) support?

Open ghostzero opened this issue 2 years ago • 1 comments

Ask your question

Docummentation suggested that localstorage is supported by referencing to all drivers and unstorage supports localstorage:

Check out here what storage drivers are supported and how to configure them: https://github.com/unjs/unstorage#drivers

How can i use local storage as an session storage?

Use case: I want to store some arbitrary data without purchasing any additional infastructute. The nuxt application is a full static static side hosted on a CDN without server side rendering.

Additional information

Setting driver to localstorage causes the following error with yarn dev:

TypeError: Cannot add property window, object is not extensible localstorage

ghostzero avatar Feb 17 '23 17:02 ghostzero

same issue

agracia-foticos avatar May 23 '23 06:05 agracia-foticos