@nosto/preact
Preparing search index...
createStore
Function createStore
createStore
(
overrides
:
Partial
<
State
>
,
)
:
{
clearOnChange
:
<
T
>
(
callback
:
(
piece
:
T
)
=>
void
)
=>
void
;
getInitialState
:
()
=>
State
;
getState
:
()
=>
State
;
onChange
:
<
T
>
(
selector
:
(
state
:
State
)
=>
T
,
callback
:
(
piece
:
T
)
=>
void
,
)
=>
void
;
updateState
:
(
newState
:
Partial
<
State
>
)
=>
void
;
}
Parameters
overrides
:
Partial
<
State
>
Returns
{
clearOnChange
:
<
T
>
(
callback
:
(
piece
:
T
)
=>
void
)
=>
void
;
getInitialState
:
()
=>
State
;
getState
:
()
=>
State
;
onChange
:
<
T
>
(
selector
:
(
state
:
State
)
=>
T
,
callback
:
(
piece
:
T
)
=>
void
,
)
=>
void
;
updateState
:
(
newState
:
Partial
<
State
>
)
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@nosto/preact
Loading...