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.localStorageby default.To use session storage, pass
window.sessionStorageas the storage argument: