Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

Subscribe.md

32 lines555 Bytes

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`