Function: useGlobalState
▸ useGlobalState<T
>(key
): [T
| undefined
, SetGlobalStateFunction
<T
>]
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
key | string |
Returns
[T
| undefined
, SetGlobalStateFunction
<T
>]
Defined in
onekijs/packages/onekijs-framework/src/app/useGlobalState.ts:8
▸ useGlobalState<T
>(key
, defaultValue
): [T
| undefined
, SetGlobalStateFunction
<T
>]
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
key | string |
defaultValue | undefined |
Returns
[T
| undefined
, SetGlobalStateFunction
<T
>]
Defined in
onekijs/packages/onekijs-framework/src/app/useGlobalState.ts:9
▸ useGlobalState<T
>(key
, defaultValue
): [T
| null
, SetGlobalStateFunction
<T
>]
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
key | string |
defaultValue | null |
Returns
[T
| null
, SetGlobalStateFunction
<T
>]
Defined in
onekijs/packages/onekijs-framework/src/app/useGlobalState.ts:10
▸ useGlobalState<T
>(key
, defaultValue
): [T
, SetGlobalStateFunction
<T
>]
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
key | string |
defaultValue | T |
Returns
[T
, SetGlobalStateFunction
<T
>]
Defined in
onekijs/packages/onekijs-framework/src/app/useGlobalState.ts:11