Interface: TRPCSubscriptionBaseResult<TOutput, TError>
On this page
Defined in: packages/react-query/src/shared/hooks/types.ts:260
Fields shared by every useSubscription result.
See
https://trpc.io/docs/client/react/useSubscription#return-type
Extended by
TRPCSubscriptionIdleResultTRPCSubscriptionConnectingResultTRPCSubscriptionPendingResultTRPCSubscriptionErrorResult
Type Parameters
| Type Parameter |
|---|
TOutput |
TError |
Properties
data
data:
undefined|TOutput
Defined in: packages/react-query/src/shared/hooks/types.ts:262
error
error:
null|TError
Defined in: packages/react-query/src/shared/hooks/types.ts:263
reset()
reset: () =>
void
Defined in: packages/react-query/src/shared/hooks/types.ts:267
Reset the subscription
Returns
void
status
status:
"error"|"idle"|"connecting"|"pending"
Defined in: packages/react-query/src/shared/hooks/types.ts:261