useFieldValue
Reads a single field's value from the current record context. Accepts a source path and returns the resolved value, supporting dot-notation for nested properties.
import { useFieldValue } from '@strato-admin/core';
const PriceDisplay = () => {
const price = useFieldValue({ source: 'pricing.amount' });
return <span>${price}</span>;
};
React-Admin reference
This hook is provided by react-admin. See the full documentation at marmelab.com/react-admin/useFieldValue.html.