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

148
Vistas
Ag-grid onCellClicked takes time to initiate API call

I am using AG-Grid in my app.

"ag-grid-community": "25.0.1",

It is used as below

<DataGrid
    id="myGrid"
    onCellClicked={onCellClicked}
    {...props}
/>

const onCellClicked = (e) => {
        console.log(e);
        history.push("/SomeRoute"); 
}

Now, in SomeRoute, API call is made on load as below;

useEffect(() => {
    getMyData();
}, []);

const getMyData = async () => {
    // Some fetch call
}

Now the issue I am observing is on click of any of the data grid rows; while it does update the URL in the address bar, it seems to be taking a long time to initiate the API call, and thus, the page loads after a lag.

What could be the possible issue why it takes time to initiate the API call?

about 4 years ago · Santiago Trujillo
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