mdbootstrap / mdb-react-ui-kit

React 18 & Bootstrap 5 & Material Design 2.0 UI KIT
https://mdbootstrap.com/docs/b5/react/
Other
1.41k stars 264 forks source link

Unsafe Lifecycle in dropdown toggle modal #39

Closed HenryTanjaya closed 6 years ago

HenryTanjaya commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

All unsafe methods have been replaced.