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 Parameter | Default type |
|---|---|
V | unknown |
Parameters
| Parameter | Type |
|---|---|
path | string |
Returns
FieldApi<V>