StreamReducer
type StreamReducer<TYield, TState> = (state, item, count) => TState;Defined in: stream-renderer.tsx:220
Custom reducer for stream state. Receives current state and new item, returns new state.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
TYield |
TState |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
state |
TState |
item |
TYield |
count |
number |
Returns
Section titled “Returns”TState