TanStack

SubscribeComponent

Interface: SubscribeComponent()

Defined in: types.ts:181

The call signature of the standalone Subscribe component.

Declared as an overloaded callable type rather than function overloads because the implementation is authored in .tsrx: a @{ … } body cannot carry preceding overload signatures (TS2384). Overload resolution is what matters at the JSX call site, and a callable type provides exactly that.

The source overloads come first so TSourceValue is inferred from source; the identity overload (no selector) is separate so children receive TSourceValue rather than unknown.

Call Signature

ts
SubscribeComponent<TSourceValue>(props): unknown;

Defined in: types.ts:182

The call signature of the standalone Subscribe component.

Declared as an overloaded callable type rather than function overloads because the implementation is authored in .tsrx: a @{ … } body cannot carry preceding overload signatures (TS2384). Overload resolution is what matters at the JSX call site, and a callable type provides exactly that.

The source overloads come first so TSourceValue is inferred from source; the identity overload (no selector) is separate so children receive TSourceValue rather than unknown.

Type Parameters

TSourceValue

TSourceValue

Parameters

props

SubscribePropsWithSourceIdentity<TSourceValue>

Returns

unknown

Call Signature

ts
SubscribeComponent<TSourceValue, TSelected>(props): unknown;

Defined in: types.ts:185

The call signature of the standalone Subscribe component.

Declared as an overloaded callable type rather than function overloads because the implementation is authored in .tsrx: a @{ … } body cannot carry preceding overload signatures (TS2384). Overload resolution is what matters at the JSX call site, and a callable type provides exactly that.

The source overloads come first so TSourceValue is inferred from source; the identity overload (no selector) is separate so children receive TSourceValue rather than unknown.

Type Parameters

TSourceValue

TSourceValue

TSelected

TSelected

Parameters

props

SubscribePropsWithSourceWithSelector<TSourceValue, TSelected>

Returns

unknown

Call Signature

ts
SubscribeComponent<TFeatures, TSelected>(props): unknown;

Defined in: types.ts:188

The call signature of the standalone Subscribe component.

Declared as an overloaded callable type rather than function overloads because the implementation is authored in .tsrx: a @{ … } body cannot carry preceding overload signatures (TS2384). Overload resolution is what matters at the JSX call site, and a callable type provides exactly that.

The source overloads come first so TSourceValue is inferred from source; the identity overload (no selector) is separate so children receive TSourceValue rather than unknown.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TSelected

TSelected

Parameters

props

SubscribePropsWithStore<TFeatures, TSelected>

Returns

unknown