Open History to see the last commit
1---
2id: Subscribe
3title: Subscribe
4---
5β
6```ts
7function Subscribe<TSourceData, TSelected>(props): Element;
8```
9β
10Defined in: [packages/solid-form/src/Subscribe.public.ts:22](https://github.com/TanStack/form/blob/main/packages/solid-form/src/Subscribe.public.ts#L22)
11β
12Subscribe to a TanStack Store source and expose the selection as an accessor.
13β
14## Type Parameters
15β
16### TSourceData
17β
18`TSourceData`
19β
20### TSelected
21β
22`TSelected`
23β
24## Parameters
25β
26### props
27β
28[`SubscribeProps`](../interfaces/SubscribeProps.md)\<`TSourceData`, `TSelected`\>
29β
30## Returns
31β
32`Element`