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

Remove children type override #7833

Merged

Conversation

kevinperaza
Copy link
Contributor

Remove children type override and add React.isValidElement to properly cast React.ReactNode to React.ReactElement

Fixes: #7825

Checklist:

  • If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)
  • Make sure all of the significant new logic is covered by tests

Copy link
Member

@benjamn benjamn left a comment

Choose a reason for hiding this comment

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

LGTM

Use 'isValidElement' typeguard

Change children to any in MockProviderProps

Update Changelog.MD
@jcreighton jcreighton force-pushed the remove-duplicate-children-property branch from 9f469fd to d2f3036 Compare March 15, 2021 18:55
@jcreighton jcreighton merged commit 048f3b1 into apollographql:main Mar 15, 2021
benjamn added a commit that referenced this pull request Mar 15, 2021
This was referenced Mar 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MockedProvider has incorrect typescript signature
3 participants