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

[TypeScript] Fix useRecordContext may return undefined #7495

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

KoltesDigital
Copy link
Contributor

The doc mentions it but TS doesn't enforce it. I believe it should.

@vercel vercel bot temporarily deployed to Preview – react-admin April 7, 2022 10:28 Inactive
@vercel vercel bot temporarily deployed to Preview – react-admin-storybook April 7, 2022 10:28 Inactive
Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It should probably be done on v4 too

@djhi djhi modified the milestones: 4.0.0-rc.2, 3.19.12 Apr 7, 2022
Copy link
Contributor

@slax57 slax57 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this submission, this is a good idea indeed!
I'll just wait for the rest of the team to give their approval before merging 🙂

@fzaninotto fzaninotto merged commit c001779 into marmelab:master Apr 7, 2022
@fzaninotto
Copy link
Member

Thanks!

@KoltesDigital
Copy link
Contributor Author

That was quick, thanks :)

@KoltesDigital KoltesDigital deleted the patch-1 branch April 7, 2022 14:17
@fzaninotto fzaninotto changed the title useRecordContext may return undefined [TypeScript] Fix useRecordContext may return undefined Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants