-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<ReferenceManyField /> passes non-consistent properties (loaded?) to child components #5054
Comments
Hi, Thank you for opening this issue and giving so many details 🙏 I need to reproduce the problem you describe on my side in order to fix it quickly. Could you create a CodeSandbox?
Regards, |
CodeSandbox does not work after updating react-admin dependency to version 3.7.1 |
@MattWilliamsDev We made a fix recently #5068. It should work now. |
I cannot repeat this in the CodeSandbox, because after saving the record and switching to the list, its optimistic loading does not start (the data is located locally). The problem appears exactly when I go to |
@wmwart Can you try now to build a CodeSandbox reproducing the problem? |
I think I have the same problem with my app, if not I will create a new issue. How to reproduce:
How to fix this, is to either wait for it to save completely, or to go to Breanna Gibson before doing these steps. Probably related problem, and steps to reproduce are (make sure you refreshed the page):
This has the same fix, if you go to Breanna Gibson and Logan Schowalter before using the reference, it works fine. I hope this helped, let me know if I should change something. EDIT: @Luwangel, can you check out this post? |
Seems like pings with an edit do not work. So @Luwangel or @fzaninotto. |
Thanks, reproduced. I'm marking this as a bug. |
So I'm making progress in understanding what happens:
So the ListContext for the SingleFieldList contains I understand the cause, but I have yet to find a good solution. |
HI @fzaninotto ! Any news on this one? |
What you were expecting:
I was expecting the display of
<Show />
page with<ReferenceManyField />
after the transition from<List>
page.What happened instead:
Application crashed
Steps to reproduce:
The bug stably appears with the following algorithm of actions:
<List>
page<Edit>
page (you cannot be on the page for a long time because the data in the list is discarded)<List>
page<List>
update loader is spinning, click on the line and go to<Show />
page with<ReferenceManyField />
I’m not sure, but the initial analysis says that
useReferenceManyFieldController
passes in<ListContext.Provider value = {controllerProps}>
of<ReferenceManyField />
loaded
property in the wrong order. As a result, in<DataGrid />
it is valid withloaded: true
withids: undefined
Other information:

Environment
The text was updated successfully, but these errors were encountered: