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

Ts/better api consumer #9861

Merged
merged 3 commits into from
Feb 14, 2020
Merged

Ts/better api consumer #9861

merged 3 commits into from
Feb 14, 2020

Conversation

ndelangen
Copy link
Member

Issue: Using Consumer component with a state filter isn't as optimized as it could be

What I did

I improved the typings of lib/api's Consumer component.

It now automatically does typing for the children function
It also automatically only re-renders the component when some has changed in the return value of the state filter function.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2020

Fails
🚫

PR is not labeled with one of: ["cleanup","doc-dependencies:update","BREAKING CHANGE","feature request","bug","documentation","maintenance","dependencies:update","dependencies","other"]

Generated by 🚫 dangerJS against 64cb247

Copy link
Member

@gaetanmaisse gaetanmaisse left a comment

Choose a reason for hiding this comment

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

LGTM TSly speaking, I'm not good enough at React to give my opinion on that 😉

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.

3 participants