visulate-ora2pg icon indicating copy to clipboard operation
visulate-ora2pg copied to clipboard

Intermittent failures in snackbar code

Open pgoldtho opened this issue 3 years ago • 0 comments

The showMessage method in App.vue is failing intermittently. It queries the browser DOM to get object reference for the mdl-js-snackbar element. This query sometimes fails. Added a workout that logs the message to the console:

      const notification = document.querySelector(".mdl-js-snackbar");
      if (notification && notification.MaterialSnackbar) {
        notification.MaterialSnackbar.showSnackbar({
          message: messageText,
        });
      } else {
        console.log(messageText);
      }

Need to identify root cause. The Project list component does not render correctly when this error occurs. Possibly related to delays introduced by the security code. Haven't seen this in the localhost version.

pgoldtho avatar Jun 04 '21 20:06 pgoldtho