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

Unsafe Lifecycle in dropdown toggle modal #39

Closed
HenryTanjaya opened this issue Jun 6, 2018 · 3 comments
Closed

Unsafe Lifecycle in dropdown toggle modal #39

HenryTanjaya opened this issue Jun 6, 2018 · 3 comments

Comments

@HenryTanjaya
Copy link

When i click the dropdown toggle there's an issue with unsafe legacy lifecycles
working on react 16, react-router 4, MDB React: 4.4.0

Warning: Unsafe legacy lifecycles will not be called for components using new component APIs.

ButtonBase uses getDerivedStateFromProps() but also contains the following legacy lifecycles:
  componentWillReceiveProps

The above lifecycles should be removed. Learn more about this warning here
@JStrebeyko
Copy link

Hi there,
So, what is ButtonBase exactly? - I understand it is the dropdown toggle modal you mention, but I am afraid it is not part of MDB React. Could you link to it? Best, Kuba

@HenryTanjaya
Copy link
Author

it shows up on console when I use Dropdown, DropdownToggle, DropdownMenu component. For exact when I clicked the button to open the dropdown toggle.
Thanks for replying anyway.

@Rotarepmi
Copy link
Contributor

All unsafe methods have been replaced.

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

3 participants