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

332
Views
React Router Dom: retroceder y mantener el estado

estoy usando react-router versión 5.3

Estoy navegando a una página como esta y configurando el estado en ella:

 <Button className="btn-neutral" color="default" size="sm" onClick={() => { props.onGetInputData( props.applicationData.uniqueIdentifier, props.applicationData.decisionLogId ); props.history.push({ pathname: "/admin/input", state: { scoreCardDetail: props.location.state.scoreCardDetail } }); }} > Input </Button>

Sin embargo, cuando hago props.history.goBack(); la página va a la página anterior en la pila, pero el estado se pierde.

¿Hay alguna manera de que pueda ir a la página anterior y mantener el estado?

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!