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

Fix Comment Display Issue and Improve Comment Submission Handling #146

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lokeshwar777
Copy link
Collaborator

Description

This pull request addresses an issue where comments posted in the Tutorials section were not displayed immediately after submission. The following changes have been made to ensure comments appear without requiring a page reload:

  • Refactored the CommentBox component to handle comment submission more efficiently.
  • Improved state management to dynamically update comments on submission.
  • Enhanced the user experience by ensuring comments are displayed promptly after posting.

Related Issue

Fixes #145

Motivation and Context

The changes are necessary to resolve a bug where comments were not appearing immediately after being posted on the Tutorials Page. By optimizing the comment submission process and updating the display logic, we aim to provide users with a smoother and more responsive interaction.

How Has This Been Tested?

  • Manually tested the comment submission process.
  • Verified that comments are displayed immediately after posting without needing to reload the page.
  • Ensured no error messages are displayed to the user during the comment submission process.
  • Checked console logs for any errors related to comment posting, confirming no issues were found.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Comments on Tutorials Page Not Displayed Immediately After Submission
3 participants