4

Using toasts in LWC to display notifications to user. mode: 'pester' does not appear to work, the toast still disappears after 3 seconds.

DOC: pester: Remains visible until the close button is clicked.

 handleWarning() {
const showWarning = new ShowToastEvent({
    title: 'Warning!',
    mode: 'pester',
    message: 'This is Warning message',
    variant: 'warning'
});
this.dispatchEvent(showWarning);  }

Other modes work fine (dismissable, sticky).

1 Answer 1

4

Caching issue. It is working as expected.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .