I have an app which is using React with admin-on-rest. I have a resource and it has a ListView and the user can navigate to the EditView from there.
Apparently, admin-on-rest uses the same object that is fetched on the ListView for the EditView as well. The problem arises when two users are at the ListView and one edits a resource while the other is still at the ListView. When the first one saves some changes, the second user goes to the EditView of the same resource but she doesn't have the latest version of it. Therefore if the second user saves some changes all of the changes the first user has made will be lost.
Is there a way to force admin-on-rest to re-fetch the resource from server when the EditViews is mounted?