@logixjs/core
Preparing search index...
StateTrait
externalStore
Function externalStore
externalStore
<
S
extends
object
,
P
,
T
=
StateAtPath
<
S
,
P
>
>
(
input
:
{
coalesceWindowMs
?:
number
;
equals
?:
(
prev
:
StateAtPath
<
S
,
P
>
,
next
:
StateAtPath
<
S
,
P
>
)
=>
boolean
;
meta
?:
Record
<
string
,
unknown
>
;
priority
?:
TraitLane
;
select
?:
(
snapshot
:
T
)
=>
StateAtPath
<
S
,
P
>
;
store
:
ExternalStore
.
ExternalStore
<
T
>
;
}
,
)
:
StateTraitEntry
<
S
,
P
>
StateTrait.externalStore:
Declares that a field is written back from an ExternalStore (external input or Module-as-Source).
The field is treated as external-owned: do not write to it from reducers/computed/link/source; use separate fields + derived traits.
Type Parameters
S
extends
object
P
T
=
StateAtPath
<
S
,
P
>
Parameters
input
:
{
coalesceWindowMs
?:
number
;
equals
?:
(
prev
:
StateAtPath
<
S
,
P
>
,
next
:
StateAtPath
<
S
,
P
>
)
=>
boolean
;
meta
?:
Record
<
string
,
unknown
>
;
priority
?:
TraitLane
;
select
?:
(
snapshot
:
T
)
=>
StateAtPath
<
S
,
P
>
;
store
:
ExternalStore
.
ExternalStore
<
T
>
;
}
Returns
StateTraitEntry
<
S
,
P
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@logixjs/core
Loading...
StateTrait.externalStore: