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
[x] 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:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
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:
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?
Types of changes
Checklist: