Skip to content

[BUG] [MGT-CHAT] Multiple timers running for Chat #3068

Description

@plasne

Describe the bug
StatefulGraphChatClient creates 2 new GraphNotificationClients - in the constructor and when updateGraphNotificationClient is called. This starts 2 shared worker timers. There are a couple of pieces of evidence for this:

  1. You can see that cleanup timer is triggered twice every interval
  2. You can add logging into Timer.ts and see that it is instantiated twice

To Reproduce
Steps to reproduce the behavior:

  1. Look at the logs

Expected behavior
We wouldn't expect multiple timers to be running and there may even be other implications to new GraphNotificationClient.

Screenshots
image

Environment (please complete the following information):

  • OS: macOS Monterey 12.7.3
  • Browser: Edge
  • Framework: React
  • Context: Web
  • Version: MGT 4
  • Provider: Msal2Provider

Additional context
I am a MSFT FTE and can be reached at pelasne on Teams.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status
Done ✔️

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions