---
title: "Discussion on \"Efficient way to render components based on API call stage\" | Hashnode"
description: "Discussion on \"Efficient way to render components based on API call stage\". Introduction\nA typical approach to loading a page is to render the entire page with a loader component as the fallback of the Suspense and then populate the page data on success.\nThe problem with the above method is that when a call to the API failed..."
url: "https://hashnode.com/posts/efficient-way-to-render-components-based-on-api-call-stage/62dfbf4e790e138f3d399020"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Efficient way to render components based on API call stage](https://mohamilr.hashnode.dev/efficient-way-to-render-components-based-on-api-call-stage?utm_source=hashnode&utm_medium=feed)

Introduction A typical approach to loading a page is to render the entire page with a loader component as the fallback of the Suspense and then populate the page data on success. The problem with the above method is that when a call to the API failed...

Jul 26, 2022 · 6 min read · mohamilr.hashnode.dev  
Read the article

-   [#api](https://hashnode.com/tag/api)
-   [#app-development](https://hashnode.com/tag/app-development)
-   [#axios](https://hashnode.com/tag/axios)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#render](https://hashnode.com/tag/render)

## Written by

[Ibrahim Mohammed](https://hashnode.com/@Mohamilr)

@Mohamilr · Lagos, Nigeria

  
[View profile](https://hashnode.com/@Mohamilr)

Frontend Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
