Open vaizki opened 1 year ago
Just noticed that lodash/get was there before the RAv4 update release, so what was the reason for getting rid of lodash here?
commented in the MR
const record = useRecordContext(props);
is a pattern that is used in react admin codebase
it's more powerful, it would allow <FunctionField render={(rec) => <JsonField source="newfield" record={{newfield: rec.x.y.z}} />>
so this is a key missing piece because JsonField
doesn't support this (passing props to useRecordContext
@MrHertal ping
I have a nested object in my record, like this:
Now if I use the JSON view components and put
source="info.tree"
it doesn't work as the component looks forrecord[source]
. The React Admin native fields and inputs use lodash to resolve nested location:Could you incorporate this into the field and input?