-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Navbar Uses componentWillMount Still #4240
Comments
@WretchedDade which version of react-bootstrap are you using? |
1.0.0-beta.11 |
Warning received when using NavbarReact - Bootstrap version 1.0.0-beta11React - 16.9.0Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
Please update the following components: Uncontrolled(Navbar) |
#4244 should fix this hopefully |
#4244 targets the v3 compat branch. We'd be happy to take a PR addressing v1, though. That said these warnings are basically innocuous for now. |
@taion The message may be innocuous but I have zero-tolerance for warning and error output in my console :) Which branch do you need a PR for? |
master |
This migrates the Navbar component to be a function component, which should resolve the lifecycle deprecation warnings. fixes #4240
Woo! Thanks everyone! |
Describe the bug
I was getting a warnings after setting up some unit tests in my project. After digging in it looks like the Navbar component still uses componentWillMount. It looks like other components are being updated to use the hook form of uncontrollable (useUncontrollable). Are there plans and/or a timeline for Navbar to be updated to no longer depend on the legacy versions of these lifecycle hooks? It's not a pressing issue, just a bit of an eyesore!
Screenshots
The text was updated successfully, but these errors were encountered: