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

153
Views
React Native: can calling setstate at least 10 times per second be slow for the app?

I use setState to be able to get the current duration of a video. But I was wondering if with setState, my application could be slow (because setState is called more than 10 times per second)? Knowing that setState is the parent component, and that it contains the video and several other components.
I know there is mobx, or redux. But for this kind of program, setState must be in the parent component for functional reasons...
So do you know if this might be a problem for my app performance ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If it's re-rendering another components that shouldn't get re-rendered, yes this is a performance issue. Also if you don't want to use an external state manager, you can simply use the React context API (https://beta.reactjs.org/learn/scaling-up-with-reducer-and-context). Anyways, in order to fix performance, you may want to research about React.memo (https://www.w3schools.com/react/react_memo.asp).

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