@dxos/app-framework - v0.15.0
Preparing search index...
Hooks
useSettingsState
Function useSettingsState
useSettingsState
<
T
>
(
atom
:
Writable
<
T
>
,
)
:
{
settings
:
T
;
updateSettings
:
(
fn
:
(
current
:
T
)
=>
T
)
=>
void
}
Hook to read and update a settings atom. Returns the current value and an update function.
Type Parameters
T
Parameters
atom
:
Writable
<
T
>
Returns
{
settings
:
T
;
updateSettings
:
(
fn
:
(
current
:
T
)
=>
T
)
=>
void
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@dxos/app-framework - v0.15.0
Loading...
Hook to read and update a settings atom. Returns the current value and an update function.