Skip to content

Leaderboard and PollList Fails to Update Immediately After New Polls or Votes Are Submitted #30

@tristenwallace

Description

@tristenwallace

Problem Summary

Users are experiencing issues where newly created polls or votes do not appear in the leaderboard statistics immediately after submission. The updates only become visible upon manually refreshing the application. This issue suggests a potential problem with state management or real-time data updating within the app.

Description

When a user creates a new poll or submits a vote, the expectation is that these actions will immediately be reflected in the leaderboard. However, the current behavior requires users to refresh the entire application to see their updates. This behavior can confuse users and detract from the real-time interactive experience expected from modern SPAs (Single-Page Applications).

Current Behavior

  • New polls or votes are submitted successfully.
  • The leaderboard does not update automatically with the new data.
  • A manual refresh of the application is required to see the changes.

Expected Behavior

  • Any new poll creation or vote should trigger an immediate update in the leaderboard.
  • Users should see their changes reflected in real time without needing to refresh the application manually.

Steps to Reproduce

  1. Log into the application.
  2. Create a new poll or participate in an existing poll by submitting a vote.
  3. Navigate to the leaderboard page to view updates.
  4. Observe that the new data is not reflected in the leaderboard.
  5. Refresh the page manually.
  6. Observe that the new data appears in the leaderboard after refreshing.

Possible Causes

  • State Management: After adding new data, the state might not be correctly updated across components or views.
  • Client-Server Synchronization: After data modifications, there might be a delay or lack of real-time synchronization between the client and server.
  • Caching Issues: If there's aggressive caching, either on the client or server side, it might prevent the new state from being fetched immediately.

Metadata

Metadata

Labels

bugSomething isn't workingreleased

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions