Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!