Skip to content
tRPC

Partners

Type Alias: TRPCSubscriptionResult<TOutput, TError>

On this page

TRPCSubscriptionResult<TOutput, TError>: TRPCSubscriptionIdleResult<TOutput> | TRPCSubscriptionConnectingResult<TOutput, TError> | TRPCSubscriptionErrorResult<TOutput, TError> | TRPCSubscriptionPendingResult<TOutput>

Defined in: packages/react-query/src/shared/hooks/types.ts:321

The result of useSubscription. Check status to narrow it.

Type Parameters

Type Parameter
TOutput
TError

See

https://trpc.io/docs/client/react/useSubscription#return-type