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 return type of useShowContext, useEditContext, and useCreateContext #8497

Merged
merged 1 commit into from Dec 13, 2022

Conversation

fzaninotto
Copy link
Member

The Partial doesn't exist in useListContext, and is wrong. It leads to TypeScript error when accessing any property from the context without testing its existence first.

…nd `useCreateContext`

The Partial doesn't exist in useListContext, and is wrong. It leads to TypeScript error when accessing any property from the context without testing its existence first.
@djhi djhi added this to the 4.6.2 milestone Dec 13, 2022
@djhi djhi merged commit e7cb31f into master Dec 13, 2022
@djhi djhi deleted the fix-usecontext-type branch December 13, 2022 13:47
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.

None yet

2 participants