Membrane React - v0.2.1
Console
SDK
REST API
Preparing search index...
useConnection
Function useConnection
useConnection
(
id
?:
string
,
)
:
{
connection
:
undefined
|
Connection
;
accessor
:
undefined
|
ConnectionAccessor
;
loading
:
boolean
;
saving
:
boolean
;
error
:
any
;
refresh
:
()
=>
Promise
<
Connection
>
;
refreshing
:
boolean
;
create
:
(
data
:
CreateConnectionRequest
)
=>
Promise
<
undefined
|
Connection
>
;
patch
:
(
data
:
Partial
<
UpdateRequest
>
)
=>
Promise
<
void
>
;
put
:
(
data
:
UpdateConnectionRequest
)
=>
Promise
<
void
>
;
archive
:
()
=>
Promise
<
void
>
;
}
Parameters
Optional
id
:
string
Returns
{
connection
:
undefined
|
Connection
;
accessor
:
undefined
|
ConnectionAccessor
;
loading
:
boolean
;
saving
:
boolean
;
error
:
any
;
refresh
:
()
=>
Promise
<
Connection
>
;
refreshing
:
boolean
;
create
:
(
data
:
CreateConnectionRequest
)
=>
Promise
<
undefined
|
Connection
>
;
patch
:
(
data
:
Partial
<
UpdateRequest
>
)
=>
Promise
<
void
>
;
put
:
(
data
:
UpdateConnectionRequest
)
=>
Promise
<
void
>
;
archive
:
()
=>
Promise
<
void
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Console
SDK
REST API
Membrane React - v0.2.1
Loading...