hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

storage-set

Stores a value in browser storage with the specified key.
Parameter
Type
Description
key
string
The key to store the value under
value
T
The value to store
type
type
The type of value to retrieve from last value if value is not provided
persistent
bool
Whether to use localStorage (true) or sessionStorage (false/null)
return
void
No return value