Warning when calling toast functions
See original GitHub issueWhen I call toast.error(“test”) i got the following warning on console:
Warning: Unsafe legacy lifecycles will not be called for components using new component APIs.
TransitionGroup uses getDerivedStateFromProps() but also contains the following legacy lifecycles:
componentWillMount
componentWillReceiveProps
The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Toasts - Bootstrap
Toasts are lightweight notifications designed to mimic the push notifications that have been popularized by mobile and desktop operating systems. They're built ...
Read more >Toasts overview - Android Developers
A toast provides simple feedback about an operation in a small popup. It only fills the amount of space required for the message...
Read more >Toast Notifications - Salesforce Lightning Component Library
A component can send a toast notification that pops up to alert users of a success, error, or warning. A toast can also...
Read more >Find and clear a toast (Toastr) - Stack Overflow
I have a link (Ok) on each toast on clicking that link I need to close only the particular toast not all toast...
Read more >Lightning Web Component(LWC) Toast Messages - SfdcPoint
We can style toast to provide error, success, warning and information message using mode parameter. We can also configure the visibility of the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @heamaral,
Since React 16.3
componentWillMount
andcomponentWillReceiveProps
are ‘deprecated’ in favor ofgetDerivedStateFromProps
andgetSnapshotBeforeUpdate
.I need to update react-transition-group from 2.2 to 2.4. Those warning only appear during development, so don’t worry for the moment.
The next release is scheduled for this month.
More detail about react lifecycle here
react-transition-group package is where this error comes from