Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
Restore the same state in react App when redirected from iframe

I am working in react.js. I have embedded an iframe in one of the component which is in other domain. And the button inside the iframe redirect to same react app.

But on redirecting it clears all of the state and I loose my state before redirection. Is there a way to restore all the state when redirected from iframe.

import React from 'react'

function iframe() {
    return (
        <div>
            <iframe
                title="grafana"
                className="detailIframe"
                src={`http://ipaddress/alllist`}
            ></iframe>
        </div>
    )
}
export default iframe

iframe has a button that redirects to detail page in react app on click.

onClick="window.top.location.href = 'http://ipaddress/detailpage'">

How can I use same state when redirected to detail page?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda