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

Fix RecordContext and UseRecordContext #6038

Merged
merged 1 commit into from
Mar 15, 2021
Merged

Conversation

djhi
Copy link
Contributor

@djhi djhi commented Mar 15, 2021

useRecordContext wasn't coherent with all our other hooks. It was an issue with fields which were behaving differently depending on where they were used (Datagrid vs Show view for example).

It now accepts props and return either the record from the props or the one from the context

@djhi djhi added the RFR Ready For Review label Mar 15, 2021
@djhi djhi added this to the 3.13.4 milestone Mar 15, 2021
@djhi djhi requested a review from fzaninotto March 15, 2021 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants