React Native Cloud Storage
Interfaces

UseCloudKVResult

The state and operations returned by useCloudKV.

The state and operations returned by useCloudKV.

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescription
loadingbooleanWhether 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.
valueT | nullThe stored value, or null when the key does not exist.

On this page