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

Connecting voting feature to the firebase database #55

Closed
Shubh942 opened this issue Feb 11, 2024 · 2 comments
Closed

Connecting voting feature to the firebase database #55

Shubh942 opened this issue Feb 11, 2024 · 2 comments

Comments

@Shubh942
Copy link

Is your feature request related to a problem? Please describe.
Voting is only implemented by useState hook on any comment. It should be stored in database and can keep track which person is already upvoted or not.

Describe the solution you'd like
By creating reducer and by writing handler of upvoting and downvoting in store can give us access to vote dynamically and can show real result of votes

Describe alternatives you've considered
Interacting with database in cl_comments table.

Additional context

image
Upvotes and downvotes should be dynamic with proper logic that user vote counts only once.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Mar 13, 2024
Copy link

github-actions bot commented Apr 5, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant