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

261
Views
Next.js: how do I redirect with state without using URL queries

I have a page/register. After the user fills in their username and password on the page, I want to redirect them to another page, /new-user, where they can fill the basic information about them. The submit button on the second page will call the API to create a new user.

In React, this is easy with react-dom-router. How do I do the same with Next.js? This Answer provided a solution with URL queries, but I don't want the user to see ?password=NextJSisHard in the URL.

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!