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/profile page infinite loading #99

Conversation

ParagGhatage
Copy link
Contributor

Summary

This PR addresses an issue where the profile page was stuck in an infinite loading state without displaying any user information. The loading spinner persisted indefinitely, causing the page to remain unresponsive.

Changes Made

  • Implemented error handling for data fetching on the profile page.
    -@Ronnieraj37 , please get Add Customizable Error Page Component #93 PR merged before this one. Because Error component created in that PR is being used in this PR
  • If the data is not loaded within 5 seconds, an error page is rendered with options to reload or return to the home page.
  • This change improves the user experience by preventing the page from staying in an endless loading state.

Screenshots

Before:

Screenshot 2025-01-15 045809

After:

Screenshot 2025-01-15 052510

Related Issue:

Fixes the issue where the profile page was stuck in an infinite loading state.

Testing Steps:

  1. Navigate to the profile page.
  2. If the data takes more than 5 seconds to load, the error page should appear with reload and home page options.
  3. Ensured that the page works correctly when the data loads within the expected time frame.

@ParagGhatage
Copy link
Contributor Author

@Ronnieraj37 , please review the PR #93 , before merging this one.

@ParagGhatage ParagGhatage closed this by deleting the head repository Jan 26, 2025
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.

1 participant