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

Warning: Setting displayName on Context.Consumer has no effect. #47

Open
DenysPavlenko opened this issue Nov 19, 2020 · 1 comment
Open

Comments

@DenysPavlenko
Copy link

DenysPavlenko commented Nov 19, 2020

Hello. I have this warning in a console when I try to use react-breakpoints:
Warning: Setting displayName on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = 'ReactBreakpoints.Consumer'.

Could you please advice?
React version - 17.0.1

@LeaveTheCapital
Copy link

Same issue here! I think this needs adding somewhere Context.displayName = 'ReactBreakpoints.Consumer' 😀

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

No branches or pull requests

2 participants