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

211
Views
React-Hook Form y Little State Machine: ¿Estoy aclarando estos estados correctamente?

En esta caja de códigos, todavía puedo ver los valores anteriores que se guardaron. Sin embargo, si uso un modo de incógnito, los códigos y la caja funcionan correctamente. No muestra los valores anteriores que se enviaron.

Este es el codesandbox: https://codesandbox.io/s/react-hook-form-data-in-step-1-and-step-2-editing-the-variable-names-wgv169?file=/src/ Paso2.js

Aclarando el estado:

 export default function clearAction(state, payload) { return { data: {} }; } const Step2 = (props) => { const { state, action } = useStateMachine(updateAction, clearAction); const onSubmit = (data) => { action(data); action(); push("/result"); }; return ( <form onSubmit={handleSubmit(onSubmit)}> //input fields here </form> ); };
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!