You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`reference`| Required |`string`| - | The name of the resource for the referenced records, e.g. 'book_details' |
77
77
|`target`| Required | string | - | Target field carrying the relationship on the referenced resource, e.g. 'book_id' |
78
78
|`children`| Required if no render |`Element`| - | React component to render the referenced record, the component need to use useReferenceOneFieldContext to access the context. |
79
-
|`render`| Required if no children |`Element`| - | A function that takes the reference field context and return a React element |
79
+
|`render`| Required if no children |`(referenceFieldContext) => Element`| - | A function that takes the reference field context and return a React element |
80
80
|`empty`| Optional |`ReactNode`| - | The text or element to display when the referenced record is empty |
81
81
|`filter`| Optional |`Object`|`{}`| Used to filter referenced records |
82
82
|`link`| Optional | `string | Function` |`edit`| Target of the link wrapping the rendered child. Set to `false` to disable the link. |
0 commit comments