Skip to content

Intermittent failures in snackbar code #52

@pgoldtho

Description

@pgoldtho

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions