Skip to content

fix: Immediate Update Issues for Leaderboard and PollList#37

Merged
tristenwallace merged 5 commits intomainfrom
state_issues
May 11, 2024
Merged

fix: Immediate Update Issues for Leaderboard and PollList#37
tristenwallace merged 5 commits intomainfrom
state_issues

Conversation

@tristenwallace
Copy link
Copy Markdown
Owner

Description:

This pull request addresses and resolves Issue #30, which impacts the real-time update functionality in the Leaderboard and PollList after users submit new polls or votes. The updates include improvements to state management and client-server synchronization to ensure dynamic reflections of user interactions.

Key Changes:

  1. Enhanced Client-Side Validation: Ensures that user inputs are effectively managed.
  2. Improved State Management:
  • Updated rerendering logic for seamless UI updates when new polls are added.
  • Refined incrementation of poll and vote counts to accurately track user activities.
  • Ensured real-time updates for both poll and vote submissions.
  1. Real-Time Synchronization: Improved the synchronization between client and server to support instant updates.

Closes #30

Handle potential async issue with CreatePollForm
Add votes field so that new poll matches format in store
Updates the poll addition logic in the Redux state management to
increment the pollCount directly in the usersSlice whenever a new poll
is added.
@tristenwallace tristenwallace merged commit 1e76f57 into main May 11, 2024
@tristenwallace tristenwallace deleted the state_issues branch May 11, 2024 20:43
tristenwallace pushed a commit that referenced this pull request Jul 15, 2024
# 1.0.0 (2024-07-15)

### Bug Fixes

* Immediate Update Issues for Leaderboard and PollList ([#37](#37)) ([1e76f57](1e76f57))
* Leaderboard PollSlice Import ([#10](#10)) ([8fc57da](8fc57da))
* Model associations and importing ([d9a7960](d9a7960))
* Only use random port for tests ([b5225ff](b5225ff))
* Remove jwt on logout ([#36](#36)) ([88b1ac6](88b1ac6))
* Update api integration to be aligned ([ffef1ee](ffef1ee))
* Update AWS pipeline ([#28](#28)) ([a7a33fa](a7a33fa))
* upgrade express-validator from 7.0.1 to 7.1.0 ([#50](#50)) ([7c37bae](7c37bae))
* upgrade fs from 0.0.1-security to 0.0.2 ([#49](#49)) ([668c2aa](668c2aa))
* upgrade pg from 8.11.5 to 8.12.0 ([#48](#48)) ([c814616](c814616))
* userSlice typos ([0838e1e](0838e1e))

### Features

* Add login header to Home ([0c5bb27](0c5bb27))
* Create SignupForm component ([a533c18](a533c18))
* Implement PollDetail component ([#4](#4)) ([a7dc6b7](a7dc6b7))
* Implement protected routes ([#9](#9)) ([daba7c1](daba7c1))
* Implement User Session Persistence ([#19](#19)) ([db4796e](db4796e))
* Mobile Navbar with login/signup ([e42aa31](e42aa31))
* Replace temp server with api to backend ([b564fe3](b564fe3))
* Update components to use new api ([164668d](164668d))
* Update components with updated api responses ([bf917e6](bf917e6))
* Update pollService with new api calls ([8476160](8476160))
* Update userService with new api calls ([bf9cfa6](bf9cfa6))
@tristenwallace
Copy link
Copy Markdown
Owner Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant