You need to sign in to do that
Don't have an account?
What is the difference between 'force:showtoast' and 'lightning:notificationsLibrary showToast'?
What is the difference between use 'force:showtoast' and 'lightning:notificationsLibrary' showToast method as strategy to displays toast messages?
In developer doc follows this recomendation: We recommend using lightning:notificationsLibrary for displaying messages in the app via notices and toasts. (https://developer.salesforce.com/docs/component-library/bundle/force:showToast/documentation)
I wish to understand why.
In developer doc follows this recomendation: We recommend using lightning:notificationsLibrary for displaying messages in the app via notices and toasts. (https://developer.salesforce.com/docs/component-library/bundle/force:showToast/documentation)
I wish to understand why.
In general, there is no difference between the two variants but the library looks more readable in the js code and supports only from 41.0 version
Thanks,
Eduard