useResolvedLookupObject
Overview
Resolves a single object by pk via the parent lookup context, reactively tracking loading and error state.
Signature
useResolvedLookupObject(app, model, pk, fields, expand)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| app | string | Ref | yes | |
| model | string | Ref | yes | |
| pk | string | Ref | yes | |
| fields | string[] | Ref | yes | |
| expand | string[] | Ref | yes |
Returns
object
Source
client/lib/use/useResolvedLookupObject.js:34