-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Edit component empty #5228
Comments
Thanks for reporting this. Please provide a sample application showing the issue by forking the following CodeSandbox (https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple). |
I have this exact same behaviour when my API call does not return an ID in his response described here: |
Yes, and also the if you supply different id then in url it also doesn't work. Please can you add some kind of console warning ? |
There is, indeed, a console warning if the return from
But it doesn't show up if your |
Reproduced, thanks. |
What you were expecting:
To render edit form
What happened instead:
Nothing rendered
Steps to reproduce:
Create new resource, add Edit component and add if in dataProvider.
Data provider implementation:

Edit form implementation:

Resource implementation:

Result:

Other information:
I can get data from dataProvider when I use
useDataProvider().getOne
it works, hovewer when I use just useGetOne it returns undefined again.Request like create, list and even some other edits work.
Environment
The text was updated successfully, but these errors were encountered: