Skip to content
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

Merged
merged 9 commits into from
Jul 24, 2019
Merged

[RFR] [BC Break] Reference hooks cleanup #3446

merged 9 commits into from
Jul 24, 2019

Conversation

fzaninotto
Copy link
Member

  • 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

@fzaninotto fzaninotto added this to the 3.0.0 milestone Jul 23, 2019
@@ -106,7 +106,7 @@ const LoadedGridList = ({ ids, data, basePath, width }) => {
);
};

const GridList = ({ loadedOnce, ...props }) =>
loadedOnce ? <LoadedGridList {...props} /> : <LoadingGridList {...props} />;
Copy link
Contributor

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 ?

Copy link
Member Author

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.

Copy link
Contributor

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

Copy link
Member Author

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.

@djhi djhi merged commit 99b7176 into next Jul 24, 2019
@djhi djhi deleted the reference-hooks branch July 24, 2019 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants