Stores an item in local, session, or memory storage.
Note: You can store up to 50kb of data in local and session storage and up to 1mb in memory storage.
function setItem(key: string, value: union): void;
The key of item to set.
The value of the item to set.
import { local } from "wix-storage-frontend";
// ...
local.setItem("key", "value");
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.