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

Subscribe.md

34 lines648 Bytes

function Subscribe<TSourceData, TSelected>(props): ComponentChildren;

Defined in: packages/preact-form/src/Subscribe.public.tsx:38

A Preact component that allows you to subscribe to source state.

This is useful for opting into state re-renders for specific parts of the state.

Type Parameters

TSourceData

TSourceData

TSelected

TSelected

Parameters

props

SubscribeProps<TSourceData, TSelected>

Returns

ComponentChildren