UseStreamReducerResult
type UseStreamReducerResult<_TYield, TState> = object;Defined in: stream-renderer.tsx:375
Result type for useStream with custom reducer
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
_TYield |
TState |
Properties
Section titled “Properties”count: number;Defined in: stream-renderer.tsx:380
Total number of items received
isError
Section titled “isError”isError: boolean;Defined in: stream-renderer.tsx:387
isLoading
Section titled “isLoading”isLoading: boolean;Defined in: stream-renderer.tsx:384
isStreaming
Section titled “isStreaming”isStreaming: boolean;Defined in: stream-renderer.tsx:385
isSuccess
Section titled “isSuccess”isSuccess: boolean;Defined in: stream-renderer.tsx:386
query: UseQueryResult<{ count: number; state: TState; status: "streaming" | "complete";}, Error>;Defined in: stream-renderer.tsx:376
refetch
Section titled “refetch”refetch: () => void;Defined in: stream-renderer.tsx:382
Restart the stream
Returns
Section titled “Returns”void
state: TState;Defined in: stream-renderer.tsx:378
Custom state from reducer