We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da0b63 commit 7a4dcbdCopy full SHA for 7a4dcbd
docs/ReferenceFieldBase.md
@@ -279,19 +279,14 @@ const PostList = () => (
279
render={({ data, isPending }) => (
280
<>
281
{!isPending &&
282
- data.map(author => (
283
- <RecordContextProvider
284
- value={author}
285
- key={author.id}
286
- >
287
- <div>
288
- <h3>{author.title}</h3>
289
- <ReferenceFieldBase source="author_id" reference="authors">
290
- <AuthorView />
291
- </ReferenceFieldBase>
292
- </div>
293
- </RecordContextProvider>
294
- ))
+ <RecordsIterator render={(author) => (
+ <div>
+ <h3>{author.title}</h3>
+ <ReferenceFieldBase source="author_id" reference="authors">
+ <AuthorView />
+ </ReferenceFieldBase>
+ </div>
+ )} />
295
}
296
</>
297
)}
0 commit comments