@leanprover/infoview
Preparing search index...
index
useClientNotificationState
Function useClientNotificationState
useClientNotificationState
<
S
,
T
>
(
method
:
string
,
initial
:
S
,
f
:
(
state
:
S
,
params
:
T
)
=>
S
,
deps
?:
DependencyList
,
)
:
[
S
,
Dispatch
<
SetStateAction
<
S
>
>
]
Like
useServerNotificationState
but for client->server notifications sent by the editor.
Type Parameters
S
T
Parameters
method
:
string
initial
:
S
f
:
(
state
:
S
,
params
:
T
)
=>
S
Optional
deps
:
DependencyList
Returns
[
S
,
Dispatch
<
SetStateAction
<
S
>
>
]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@leanprover/infoview
Loading...
Like useServerNotificationState but for client->server notifications sent by the editor.