Skip to main content

Function: useField()

function useField<V>(path): FieldApi<V>;

Defined in: hooks.ts:260

Subscribe to one field.

The subscription is per path (engine.subscribeField), and the engine only notifies when that path's projection changed identity, so this hook is the whole story behind "typing in field A does not re-render field B".

Type Parameters​

Type ParameterDefault type
Vunknown

Parameters​

ParameterType
pathstring

Returns​

FieldApi<V>