Utils

Web API Wrappers

Quasar Web Storage

NOTEWeb Storage API only retrieves strings. Quasar retrieves data with its original data type. You tell it to store a Number then to retrieve it and it will still be a Number, not a string representation of the number as with Web Storage API. Same for JSON, Regular Expressions, Dates, Booleans and so on. Read below.

Installation

Edit /quasar.conf.js:

framework: { plugins: ['LocalStorage','SessionStorage' ]}

Note about SSR

When running the code server-side on SSR builds, this feature can’t work. Web Storage is a browser API only. You can however make use of it on the client-side with SSR.