Function subscribeFirstRest
-
subscribeFirstRest<T>(
store: Readable<T> | MinimalWritable<T>,
first: Subscriber<T>,
subscriber: Subscriber<T>,
): UnsubscriberType Parameters
- T
type of data.
Parameters
- store: Readable<T> | MinimalWritable<T>
Store to subscribe to...
- first: Subscriber<T>
Function to receive first update.
- subscriber: Subscriber<T>
Function to receive future updates.
Returns Unsubscriber
Store unsubscribe function.
- T
Subscribes to the given store with two subscriber functions provided. The first function is invoked on the initial subscription. All future updates are dispatched to the subscriber function.