This project has been succeeded by GraphReFly. New development happens at graphrefly-ts. npm install @graphrefly/graphrefly
Skip to content

concat() ​

Plays sources one after another: the next source subscribes only after the previous completes.

Signature ​

ts
function concat<T>(...sources: Store<T>[]): Store<T | undefined>

Parameters ​

ParameterTypeDescription
sourcesStore&lt;T&gt;[]Ordered list of Store&lt;T&gt;.

Returns ​

Store&lt;T | undefined&gt; — Tier 2; value is from whichever source is currently active.

Options / Behavior Details ​

  • STATE: Forwards control signals from the active source only.

See Also ​

Released under the MIT License.