Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: chat example frontend race condition #2219

Merged
merged 1 commit into from
May 26, 2022

Conversation

moofMonkey
Copy link
Contributor

@moofMonkey moofMonkey commented May 26, 2022

This fixes the race condition bug revealed by #2209.
I have also noticed this.cache.batch error that was caused by an incorrectly imported InMemoryCache from apollo-cache-inmemory, because it has been exported by the @apollo/client since v3, and the chat example is using v3.2.3.
It's far from perfect, but at least this.cache.batch error and the race condition are gone now.

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 74.977% when pulling ef44ba6 on MoofMonkey:patch-1 into 11f4057 on 99designs:master.

@StevenACoffman StevenACoffman merged commit 3de7d2c into 99designs:master May 26, 2022
@StevenACoffman
Copy link
Collaborator

So good! Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants