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

Double loading of post allows for race condition on proposal voting #139

Open
thomasgwatson opened this issue Jan 16, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@thomasgwatson
Copy link
Collaborator

From https://www.hylo.com/groups/hylo-stewards/post/82043/comments/156749

Yes, race condition.

I loaded the page; stream and post details

  1. post details finished loading; UI ready to interact
  2. I voted, optimistically updating local copy of post
  3. stream finishes loading; latest version of post wipes the local optimistically updated post
  4. thus, it renders it as if I have no vote
  5. I vote again

:(

@thomasgwatson thomasgwatson added the bug Something isn't working label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: New
Development

No branches or pull requests

1 participant