storage/update

Update a storage item

Fields

keystring required

This is the value you would like to add to your storage. This can also use dot notation ex.user.age

valuestring

This is the value of the what you would like to store

The storage/update action updates or stores a key-value pair in the app's local storage. This action functions identically to storage/add - it will create a new key-value pair if the key doesn't exist, or update the existing value if the key already exists.

The storage system supports dot notation for organizing data hierarchically (e.g., user.name, settings.theme).

Tapcart.action("storage/update", {
  "key": "username",
  "value": "Eric Newname"
});