Skip to main content

The localStorage object

Store and retrieve data in the browser.

Use localStorage to save data locally to the browser.

Properties

All properties for Local Storage with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.

The value.

Methods

JavaScript API methods for interacting with Local Storage. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.

clear

Clear all values. The initial value must be an empty object (e.g., { }). Returns a void Promise when the method resolves.

localStorage.clear()

setValue

Set the current value.

localStorage.setValue(value)
Parameters

The value.