A hook for working with a single record. Automatically handles loading data and updating your component when the record's cell values or color changes.
Often used with useRecordIds to render a list of records where each list item only updates when the specific record it concerns changes.
Under the hood, this hook creates a TableOrViewQueryResult if passed a table or view.
Pass a query result if you want direct access to it (e.g. for queryResult.getRecordById
).
Returns the specified record, or null if no model was passed in, or no record with that ID exists in the model.