Skip to main content

Module: data/composables/useSharedState

Functions

useSharedState

useSharedState<INITIAL_VALUE>(key, initalValue): Object

Type parameters

Name
INITIAL_VALUE

Parameters

NameTypeDescription
keystringShared state key
initalValueINITIAL_VALUEInitial value

Returns

Object

NameType
valueUnwrapRef<INITIAL_VALUE>

Defined in

packages/admin-sdk/src/data/composables/useSharedState.ts:88