sample()
On each notifier emission, emits the latest value from the primary input (Tier 2).
Signature
ts
function sample<A>(notifier: Store<unknown>): StoreOperator<A, A>Parameters
| Parameter | Type | Description |
|---|---|---|
notifier | Store<unknown> | Sampling clock store. |
Returns
StoreOperator<A, A> — get() reflects latest input, not only last sample.