# SubscribePropsWithSourceWithSelector

# Interface: SubscribePropsWithSourceWithSelector\<TSourceValue, TSelected\>

Defined in: [types.ts:144](https://github.com/TanStack/table/blob/main/packages/octane-table/src/types.ts#L144)

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](https://github.com/TanStack/table/blob/main/packages/octane-table/src/types.ts#L147)

***

### selector()

```ts
selector: (state) => TSelected;
```

Defined in: [types.ts:146](https://github.com/TanStack/table/blob/main/packages/octane-table/src/types.ts#L146)

#### Parameters

##### state

`TSourceValue`

#### Returns

`TSelected`

***

### source

```ts
source: SubscribeSource<TSourceValue>;
```

Defined in: [types.ts:145](https://github.com/TanStack/table/blob/main/packages/octane-table/src/types.ts#L145)
