Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Web Storage (localstorage) support? #70

Open
ghostzero opened this issue Feb 17, 2023 · 1 comment
Open

Web Storage (localstorage) support? #70

ghostzero opened this issue Feb 17, 2023 · 1 comment
Labels
question Further information is requested

Comments

@ghostzero
Copy link

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 ghostzero added the question Further information is requested label Feb 17, 2023
@agracia-foticos
Copy link

same issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants