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
Property | Required | Description | Type |
---|---|---|---|
storageKey | Yes | The key used to locate the specific data in local storage | String |
key | No | The key to retrieve a specific value within the stored object. If not provided, returns all data | String |
stateKey | No | The key used to update the provided state object with the retrieved data | String |
Function type
Type | Description |
---|---|
ReturnData | It processes the input data or generates data independently and returns the processed result after successful execution. |