-
-
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
[RFR] [BC Break] Reference hooks cleanup #3446
Conversation
fzaninotto
commented
Jul 23, 2019
- Fix ReferenceField (broken by [RFR] Use reference input #3313)
- Use useReferenceInput hook in ReferenceInput component
- Rename useReferenceArray to useReferenceArrayFieldController
- Rename useReferenceMany to usereferenceManyFieldController
- [BC Break] rename isLoaded prop to loaded
And rename it to useReferenceInputController
@@ -106,7 +106,7 @@ const LoadedGridList = ({ ids, data, basePath, width }) => { | |||
); | |||
}; | |||
|
|||
const GridList = ({ loadedOnce, ...props }) => | |||
loadedOnce ? <LoadedGridList {...props} /> : <LoadingGridList {...props} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it a breaking change too for custom views ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand your remark, but yes, it is a breaking change, hence the new section in the upgrade guide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new section says nothing about loadedOnce
, only isLoaded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, it's loadedOnce
, not isLoaded
. I'll fix the upgrade guide right away.