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
Issue:
"view_email" fires twice when I open an email from the inbox.
I am using the boilerplate code from the gmailjs-node-boilerplate repo.
Solution tried:
I followed the debugging instructions in issue 526 and confirmed that the "view_email" event-handler is only registered once. The call stack is the same each time "view_email" fires:
Have you seen this before? Do you know what might be causing it?
The text was updated successfully, but these errors were encountered:
The email_view and thread_view events has always been ... not extremely deterministic, due to how Gmail does rendering, pre-rendering etc. And new gmail has made things even more "interesting".
There's no "proper" fix for this yet, and the simplest way to deal with this is simply making your event-handling code idempotent (i.e. triggering the same event multiple times results in the same outcome as triggering it once), as suggested in the linked thread.
Issue:
"view_email" fires twice when I open an email from the inbox.
I am using the boilerplate code from the gmailjs-node-boilerplate repo.
Solution tried:

I followed the debugging instructions in issue 526 and confirmed that the "view_email" event-handler is only registered once. The call stack is the same each time "view_email" fires:
Have you seen this before? Do you know what might be causing it?
The text was updated successfully, but these errors were encountered: