Skip to main content
Version: 11.x

Interface: UseTRPCSubscriptionOptions<TOutput, TError>

Type parameters

Parameter
TOutput
TError

Properties

enabled

optional enabled: boolean

Source

packages/react-query/src/shared/hooks/types.ts:140


onData

onData: (data) => void

Parameters

ParameterType
dataTOutput

Returns

void

Source

packages/react-query/src/shared/hooks/types.ts:142


onError

optional onError: (err) => void

Parameters

ParameterType
errTError

Returns

void

Source

packages/react-query/src/shared/hooks/types.ts:143


onStarted

optional onStarted: () => void

Returns

void

Source

packages/react-query/src/shared/hooks/types.ts:141


Generated using TypeDoc and typedoc-plugin-markdown