@refinio/one.ui
Preparing search index...
ui/views/connections/hooks
useToggleConnection
Function useToggleConnection
useToggleConnection
(
enabled
:
boolean
,
enable
:
(
shouldEnable
:
boolean
)
=>
Promise
<
void
>
,
onError
?:
(
error
:
Error
)
=>
void
,
)
:
[
undefined
|
{
from
:
boolean
}
,
()
=>
void
]
Parameters
enabled
:
boolean
enable
:
(
shouldEnable
:
boolean
)
=>
Promise
<
void
>
onError
:
(
error
:
Error
)
=>
void
= console.error
Returns
[
undefined
|
{
from
:
boolean
}
,
()
=>
void
]
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@refinio/one.ui
Loading...