Interface: TRPCSubscriptionErrorResult<TOutput, TError>
On this page
Defined in: tanstack-react-query/src/internals/subscriptionOptions.ts:158
Result after an error that stopped the subscription.
Extends
TRPCSubscriptionBaseResult<TOutput,TError>
Type Parameters
| Type Parameter |
|---|
TOutput |
TError |
Properties
data
data:
undefined|TOutput
Defined in: tanstack-react-query/src/internals/subscriptionOptions.ts:163
The last data received.
Overrides
TRPCSubscriptionBaseResult.data
error
error:
TError
Defined in: tanstack-react-query/src/internals/subscriptionOptions.ts:164
The last error, if any.
Overrides
TRPCSubscriptionBaseResult.error
reset()
reset: () =>
void
Defined in: tanstack-react-query/src/internals/subscriptionOptions.ts:118
Reset the subscription
Returns
void
Inherited from
TRPCSubscriptionBaseResult.reset
status
status:
"error"
Defined in: tanstack-react-query/src/internals/subscriptionOptions.ts:162
Where the subscription is in its lifecycle.
Overrides
TRPCSubscriptionBaseResult.status