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.
184
184
< / ReferenceField>
185
185
```
186
186
187
- ` <ReferenceField> ` renders the ` empty ` element when:
187
+ ` <ReferenceField> ` renders the ` offline ` element when:
188
188
189
189
- the referenced record is missing (no record in the ` users ` table with the right ` user_id ` ), and
190
190
- there is no network connectivity
191
191
192
192
You can pass either a React element or a string to the ` offline ` prop:
193
193
194
194
``` 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> } >
196
196
...
197
197
< / 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" >
199
199
...
200
200
< / ReferenceField>
201
201
```
You can’t perform that action at this time.
0 commit comments