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

Enhance getApprovedApps API call with improved error handling and per… #1530

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

smian1
Copy link
Collaborator

@smian1 smian1 commented Dec 12, 2024

…formance optimizations

  • Added a 15-second timeout for API requests to prevent hanging.
  • Reduced cache revalidation time from 6 hours to 1 hour.
  • Implemented response parsing using ArrayBuffer for efficiency.
  • Enhanced error logging to provide detailed information on failures.
  • Returned cached data on timeout or network errors, with fallback to an empty array if no cache is available.
  • Updated type definitions for getAppById and getAppsByCategory functions for better TypeScript support.

…formance optimizations

- Added a 15-second timeout for API requests to prevent hanging.
- Reduced cache revalidation time from 6 hours to 1 hour.
- Implemented response parsing using ArrayBuffer for efficiency.
- Enhanced error logging to provide detailed information on failures.
- Returned cached data on timeout or network errors, with fallback to an empty array if no cache is available.
- Updated type definitions for getAppById and getAppsByCategory functions for better TypeScript support.
@smian1 smian1 merged commit b3484c3 into BasedHardware:main Dec 12, 2024
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