Skip to main content

Get Value From Local Storage

info

Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.

Description

The getValueFromLocalStorage service retrieves data from the browser's local storage. It takes a specific storage key to locate the data and an optional key to extract a particular value from the stored object. If no key is provided, the entire item is returned. Additionally, the function can update a provided state object with the retrieved data if a stateKey is specified.

Diagram

Example

{
"name": "getValueFromLocalStorage",
"parameters": [
{
"storageKey": "topLineSteel_dpps",
"key": "/vc"
}
]
}

Definitions

PropertyRequiredDescriptionType
storageKeyYesThe key used to locate the specific data in local storageString
keyNoThe key to retrieve a specific value within the stored object. If not provided, returns all dataString
stateKeyNoThe key used to update the provided state object with the retrieved dataString

Function type

TypeDescription
ReturnDataIt processes the input data or generates data independently and returns the processed result after successful execution.