c2siorg / Codelabz

Codelabz
Apache License 2.0
11 stars 51 forks source link

Connecting voting feature to the firebase database #55

Closed Shubh942 closed 5 months ago

Shubh942 commented 6 months ago

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.

github-actions[bot] commented 5 months ago

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

github-actions[bot] commented 5 months ago

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