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

114
Views
Multiple API call on component render

I created a react class based form, in which i have a checkbox which is dependent on another react component value. Whenever there is change in dropdown value selected by user an internal API is called for enabling/disabling checkbox. Checkbox rendering happens with each change in form i need to restrict it to drop down element and avoid multiple calls.

Earlier i placed the code for identifying if the checkbox to be disabled/enable inside render method but to avoid multiple calls i want to move it outside render(). How to do it in react lifecycle can anyone please help!!!

NOTE: I was returning a dispatch function with action type in old implementation, do i need to get rid of dispatch ?

about 4 years ago · Juan Pablo Isaza
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!