Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

149
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda