Hooks
useCloudKV
Reads and writes one cloud key-value entry and refreshes it after relevant external changes.
function useCloudKV<T>(key: string, options?: UseCloudKVOptions<T>): UseCloudKVResult<T>;Reads and writes one cloud key-value entry and refreshes it after relevant external changes.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | string |
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | The key to read and write. |
options? | UseCloudKVOptions<T> | An optional storage instance and serializer. |
Returns
The current value, loading state, and mutation functions.