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

Implement async fetch loading on the Home page #133

Merged
merged 37 commits into from
May 13, 2024
Merged

Conversation

alexeyandreevsky
Copy link
Collaborator

@alexeyandreevsky alexeyandreevsky commented May 10, 2024

Issue

If any of the fetches are delayed, all data on the page is displayed with a delay and user sees a page without data. It is also not obvious that the download is in progress, since the download progress is not displayed.

Things done

  • Separateed common promise handler on the Home page for each request
  • Added loader state for each block
  • Added fetch loading error messages

@alexeyandreevsky alexeyandreevsky added the frontend Related to fronted (UI) label May 10, 2024
@alexeyandreevsky alexeyandreevsky self-assigned this May 10, 2024
Copy link

vercel bot commented May 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
platform-explorer-zham ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 7:58pm

packages/frontend/src/app/home/Home.js Outdated Show resolved Hide resolved
packages/frontend/src/app/home/Home.js Outdated Show resolved Hide resolved
packages/frontend/src/app/home/Home.js Show resolved Hide resolved
packages/frontend/src/components/networkStatus/index.js Outdated Show resolved Hide resolved
@alexeyandreevsky alexeyandreevsky marked this pull request as ready for review May 11, 2024 13:03
packages/frontend/src/app/home/Home.js Outdated Show resolved Hide resolved
packages/frontend/src/app/home/Home.js Outdated Show resolved Hide resolved
@pshenmic pshenmic merged commit 05fdb7c into master May 13, 2024
7 checks passed
@alexeyandreevsky alexeyandreevsky changed the title Implement async fetch loading Implement async fetch loading on the Home page May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Related to fronted (UI)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants