We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
displayName
react-router sets displayName on context consumers and producers. This has no effect. displayName should be set on the context object itself.
react-router
As of 15 days ago there is a new warning in React about this: https://github.com/facebook/react/blame/d35f8a58184d1495ff54f4ad80c702e9468c89ee/packages/react/src/ReactContext.js#L131
6.0.0-alpha.2 (with latest React build)
https://codesandbox.io/s/react-router-context-displayname-fujnt
Open console to see warning
There should be no warnings when using react router
The text was updated successfully, but these errors were encountered:
Fix warning by setting displayName on context object, fixes #7204 (#7205
036c042
)
Fixed in your PR. Thanks for that!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
react-router
setsdisplayName
on context consumers and producers. This has no effect.displayName
should be set on the context object itself.As of 15 days ago there is a new warning in React about this:
https://github.com/facebook/react/blame/d35f8a58184d1495ff54f4ad80c702e9468c89ee/packages/react/src/ReactContext.js#L131
Version
6.0.0-alpha.2
(with latest React build)
Test Case
https://codesandbox.io/s/react-router-context-displayname-fujnt
Steps to reproduce
Open console to see warning
Expected Behavior
There should be no warnings when using react router
The text was updated successfully, but these errors were encountered: