Interfaces
UseCloudKVResult
The state and operations returned by useCloudKV.
The state and operations returned by useCloudKV.
Type Parameters
| Type Parameter |
|---|
T |
Properties
| Property | Type | Description |
|---|---|---|
loading | boolean | Whether the hook is reading the current value. |
removeValue | () => Promise<void> | Removes the value and then refreshes the hook state. |
setValue | (value: T) => Promise<void> | Saves a value and then refreshes the hook state. |
sync | () => Promise<void> | Synchronizes the provider and then refreshes the hook state. |
value | T | null | The stored value, or null when the key does not exist. |