From 251303512ccab2404e95817db470bb0b1bafc663 Mon Sep 17 00:00:00 2001 From: fargito Date: Tue, 28 May 2019 10:54:50 +0200 Subject: [PATCH] update docs --- docs/Fields.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/Fields.md b/docs/Fields.md index ceb00031900..f42b1c81862 100644 --- a/docs/Fields.md +++ b/docs/Fields.md @@ -520,6 +520,15 @@ You can also prevent `` from adding link to children by setting ``` +You can also use a custom `linkType` function to get a custom path for the children. + +```jsx +// Custom path + '/my/path'}> + + +``` + **Tip**: React-admin uses `CRUD_GET_ONE_REFERENCE` action to accumulate and deduplicate the ids of the referenced records to make *one* `GET_MANY` call for the entire list, instead of n `GET_ONE` calls. So for instance, if the API returns the following list of comments: ```jsx