Example
GitHub
Preparing search index...
The search index is not available
ic-reactor
ic-reactor
react
types
StoreApiWithDevtools
Interface StoreApiWithDevtools<T>
interface
StoreApiWithDevtools
<
T
>
{
getState
:
(
(
)
=>
T
)
;
getInitialState
:
(
(
)
=>
T
)
;
subscribe
:
(
(
listener
)
=>
(
(
)
=>
void
)
)
;
destroy
:
(
(
)
=>
void
)
;
setState
:
NamedSet
<
T
>
;
}
Type Parameters
T
Hierarchy
StoreApi
<
T
>
StoreApiWithDevtools
Index
Properties
get
State
get
Initial
State
subscribe
destroy
set
State
Properties
get
State
get
State
:
(
(
)
=>
T
)
Type declaration
(
)
:
T
Returns
T
get
Initial
State
get
Initial
State
:
(
(
)
=>
T
)
Type declaration
(
)
:
T
Returns
T
subscribe
subscribe
:
(
(
listener
)
=>
(
(
)
=>
void
)
)
Type declaration
(
listener
)
:
(
(
)
=>
void
)
Parameters
listener
:
(
(
state
,
prevState
)
=>
void
)
(
state
,
prevState
)
:
void
Parameters
state
:
T
prevState
:
T
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
destroy
destroy
:
(
(
)
=>
void
)
Type declaration
(
)
:
void
Returns
void
Deprecated
Use
unsubscribe
returned by
subscribe
set
State
set
State
:
NamedSet
<
T
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
get
State
get
Initial
State
subscribe
destroy
set
State
ic-reactor
Loading...
Deprecated
Use
unsubscribe
returned bysubscribe