Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

459
Vistas
Load data in chunks from RxJs Observable from a get API, when the data is huge in Angular

So, I am working with an angular application where I have to fetch data (array of objects) from my backend server (spring boot) and render them as different cards in UI.

Sometimes the data from backend is so huge that the entire application will be in loading state until I receive the observable and get the data out from it.

I know I can implement some lazy loading/loading on demand from making multiple calls to backend based on page number, but my situation is I have custom pipes written in Angular that will filter all the data in UI. If I lazy render the data, the filters wont be applied to data which does not loaded yet.

I need a solution that from the observable, is there any way to get the data in chunks. So on load of first chunk of data, I will render UI and in background I can append the rest of the data to the same variable... For example: If I have 1000 data objects in an array, instead of waiting for all the 1000 objects to get loaded in a component.ts file, I wanted to load first 100, then loading screen will be gone and rest in different parts in background (100 * 10 parts)

Is there any solution for this?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can implement the pagination in this scenario, at first get few rows, then when component A is loaded, call the api for next few rows.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda