My code is below. What I am trying to do is subscribe to a graphql stream and update the lastMessageTime and lastMessageID after each time I get back messages. I then send those to the server in the stream in order to get new messages only.
The issue that I am running into is the following bug. I believe this is being caused by setState happening in the ResultsAccumulator but I don't see a way to get around that because I won't have the lastMessageTime or lastMessageID back at any other time...
My code is below. What I am trying to do is subscribe to a graphql stream and update the lastMessageTime and lastMessageID after each time I get back messages. I then send those to the server in the stream in order to get new messages only.
The issue that I am running into is the following bug. I believe this is being caused by setState happening in the ResultsAccumulator but I don't see a way to get around that because I won't have the lastMessageTime or lastMessageID back at any other time...
Help?