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

82
Views
Memory Slowness issue with React Context and lot of data

I have a simple react app that load some external pdf page from api Api send me result from page 1 its an array of all text of page sometimes there is 3000 text

{
  texts: [{ value: 'Title of page'}, {value:"Chapter 1"} ......
}

Render works good but after loading 50 pages my store is very heavy i have 3000 texts * 50 pages store in my context

I try to clean store to keep only last 10 pages but when i go back to page 1 i need to refetch the page and store it again in context

Do you have a solution other than context to avoid this performance issue (page lag when i scroll down to load another page) ?

Thanks

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!