Skip to content

Fix: standardize loading and error handling in papers page#345

Open
alok-108 wants to merge 1 commit intom2b3:mainfrom
alok-108:fix/loading-error-handling
Open

Fix: standardize loading and error handling in papers page#345
alok-108 wants to merge 1 commit intom2b3:mainfrom
alok-108:fix/loading-error-handling

Conversation

@alok-108
Copy link
Copy Markdown

@alok-108 alok-108 commented Mar 24, 2026

Title: Fix inconsistent loading and error handling in papers page

Description: ## Problem
The application has inconsistent loading and error handling across components.

Solution

Added explicit loading state and error handling in papers page using standard React hooks and the Fetch API, to replace previous obscure abstractions.

Implementation

  • Updated API logic using try-catch blocks
  • Added conditional rendering for Loading... and manual generic text error blocks

Testing

  • Verified loading state locally
  • Tested API failure scenario by simulating erroneous endpoints
  • Checked UI to ensure robust transition states

Screenhots (if any):
loading_state_final_verification_1774344154287
loading_state_final_verification_1774344154287

Resolves : Standardizing loading and error states across the articles listing page.

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