TanStack

SubscribePropsWithSourceWithSelector

Interface: SubscribePropsWithSourceWithSelector<TSourceValue, TSelected>

Defined in: types.ts:144

Subscribe to a projected value from a source (atom or store). The selector receives the source value; children receive the projected TSelected.

Type Parameters

TSourceValue

TSourceValue

TSelected

TSelected

Properties

children

ts
children:
  | SubscribeStaticChild
  | (state) => unknown;

Defined in: types.ts:147


selector()

ts
selector: (state) => TSelected;

Defined in: types.ts:146

Parameters

state

TSourceValue

Returns

TSelected


source

ts
source: SubscribeSource<TSourceValue>;

Defined in: types.ts:145