File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,18 +184,18 @@ You can also use a custom `link` function to get a custom path for the children.
184184< / ReferenceField>
185185```
186186
187- ` <ReferenceField> ` renders the ` empty ` element when:
187+ ` <ReferenceField> ` renders the ` offline ` element when:
188188
189189- the referenced record is missing (no record in the ` users ` table with the right ` user_id ` ), and
190190- there is no network connectivity
191191
192192You can pass either a React element or a string to the ` offline ` prop:
193193
194194``` jsx
195- < ReferenceField source= " user_id" reference= " users" empty = {< span> No network, could not fetch data< / span> } >
195+ < ReferenceField source= " user_id" reference= " users" offline = {< span> No network, could not fetch data< / span> } >
196196 ...
197197< / ReferenceField>
198- < ReferenceField source= " user_id" reference= " users" empty = " No network, could not fetch data" >
198+ < ReferenceField source= " user_id" reference= " users" offline = " No network, could not fetch data" >
199199 ...
200200< / ReferenceField>
201201```
You can’t perform that action at this time.
0 commit comments