React Native Cloud Storage
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 ParameterDefault type
Tstring

Parameters

ParameterTypeDescription
keystringThe key to read and write.
options?UseCloudKVOptions<T>An optional storage instance and serializer.

Returns

UseCloudKVResult<T>

The current value, loading state, and mutation functions.

On this page