How do you specify if storage should be local or session when using VueUse?
It doesn't seem to mention it in the docs https://vueuse.org/core/usestorage/
How do you specify if storage should be local or session when using VueUse?
It doesn't seem to mention it in the docs https://vueuse.org/core/usestorage/
The third argument to
useStorage()
specifies the storage to use. It useswindow.localStorage
by default.To use session storage, pass
window.sessionStorage
as the storage argument: