Skip to content

Commit e050735

Browse files
committed
Fix offline documentation
1 parent db96194 commit e050735

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/ReferenceField.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

192192
You 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
```

0 commit comments

Comments
 (0)