Hiyve Components - v1.0.0
Preparing search index...
@hiyve/react-semantic-relay
UseRelayTopicResult
Interface UseRelayTopicResult<T>
Value exposed by
useRelayTopic<T>()
.
interface
UseRelayTopicResult
<
T
>
{
isConnected
:
boolean
;
publish
:
(
payload
:
T
)
=>
void
;
subscribe
:
(
handler
:
RelaySubscribeHandler
<
T
>
)
=>
()
=>
void
;
}
Type Parameters
T
Index
Properties
is
Connected
publish
subscribe
Properties
is
Connected
isConnected
:
boolean
publish
publish
:
(
payload
:
T
)
=>
void
subscribe
subscribe
:
(
handler
:
RelaySubscribeHandler
<
T
>
)
=>
()
=>
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
is
Connected
publish
subscribe
Hiyve Components - v1.0.0
Loading...
Value exposed by
useRelayTopic<T>().