Enqueued notifications are processed in order. and will not be processed during the window isn’t visible.
'use strict';
module.exports = (pluginContext) => {
const toast = pluginContext.toast;
function startup() { ... }
function search(query, res) { ... }
function execute(id, payload) {
if (...) {
toast.enqueue('Hello, World!', 2500);
}
}
return { startup, search, execute };
};