Closed zhouhao27 closed 5 years ago
Hi, and thanks for your question. As explained in the react-admin contributing guide, the right place to ask a "How To" question, get usage advice, or troubleshoot your own code, is StackOverFlow.
This makes your question easy to find by the core team, and the developer community. Unlike Github, StackOverFlow has great SEO, gamification, voting, and reputation. That's why we chose it, and decided to keep GitHub issues only for bugs and feature requests.
So I'm closing this issue, and inviting you to ask your question at:
http://stackoverflow.com/questions/tagged/react-admin
And once you get a response, please continue to hang out on the react-admin channel in StackOverflow. That way, you can help newcomers and share your expertise!
Sorry. But I thought this is a bug. No data shown in DataGrid.
It's not. This is a feature used in all our examples, which work, so there is something wrong with your code and StackOverflow is where you should ask for help.
@zhouhao27 Did you manage to make it work? I'm having the same problem but I don't know if it's my fault or if it is a bug
Ok, It was my fault. The problem was that there was not a resource in the Admin
component for the resource we are making reference in ReferenceManyField
. Read more https://github.com/marmelab/react-admin/issues/1903#issuecomment-396900348
@zhouhao27, probably not actual anymore, but for those finding this in the future, usually this problem occurs when you didn't define a proper resource in the <Admin>
component. So, in order to fix your problem @zhouhao27, you'd have to have something along these lines:
<Admin ...>
<Resource ...> // other resources
<Resource name="comments">
</Admin>
for active filters in simple grid , a default message come "No results found" when list returns empty . Its not reading empty prop ?
What you were expecting:
My
article
has multiplecomments
which identified byarticle_id
.article
Comments
What happened instead:
No records shown for comments.
Steps to reproduce:
Related code:
Code in my PhotoEdit:
My CodeSandbox link.
Other information:
User name: demo@mail.com Password: password
Environment