You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is there any chance to update another already fired toast from the filterBeforeCreate method?
const filterBeforeCreate = (toast, toasts) => {
if (toasts.filter(t => t.content === toast.content).length !== 0) {
// Returning false discards the toast
.....
this.$toasts.update(id, { content: 'dkfjdksldjkf' }) <-- i want to update the toast with given id here
return false
}
// You can modify the toast if you want
........
return toast
}
iam trying to suppress toast with the same content (eg timeouts from axios)
and display just one toast but with the count of suppressed toast in it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
is there any chance to update another already fired toast from the filterBeforeCreate method?
const filterBeforeCreate = (toast, toasts) => {
if (toasts.filter(t => t.content === toast.content).length !== 0) {
// Returning false discards the toast
.....
this.$toasts.update(id, { content: 'dkfjdksldjkf' }) <-- i want to update the toast with given id here
return false
}
// You can modify the toast if you want
........
return toast
}
iam trying to suppress toast with the same content (eg timeouts from axios)
and display just one toast but with the count of suppressed toast in it.
or is there maybe another way to achieve this?
thanx and regards stavro
Beta Was this translation helpful? Give feedback.
All reactions