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

106
Views
¿Cómo evitar la recarga de iframe en reactjs?

Hay una API de la que obtengo el contenido del documento html, actualmente estoy tomando datos en fragmentos y configurando el estado y hay un iframe cuyo atributo "srcDoc" está tomando ese valor del estado. Lo que quiero hacer es evitar la recarga de iframe porque cada vez que se establece "srcDoc", el desplazamiento de iframe se lleva a la parte superior y se vuelve a cargar. Aquí está el código:

 const stream = new Promise(() => { axios({ url: `http://54.90.50.223/api/mainapi/Documents/GetHTML`, method: "GET", onDownloadProgress: (progressEvent) => { const dataChunk = progressEvent.currentTarget.response; console.log(dataChunk); str += dataChunk; this.setState({ srcDoc: str }); }, }).then(({ data }) => Promise.resolve(data)); });

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!