Persist API Across Pages
Unanswered
Asian paper wasp posted this in #help-forum
Asian paper waspOP
We have a Next.js v13 pages router app using TypeScript. We have a legacy UX requirement to spread out the API across multiple pages. I've never done this before, so I'm trying to understand how and implement.
Page 1: Form submitted, redirect to page 2
Page 2: Wait here until a response is received from the API call on page 1. On response, redirect to page 3.
Page 3: There are a few pages that can be used here, and they are all conditional based on the response.
How do I get the API call to still move forward, while I'm redirecting to page 2 and waiting for the response?
Page 1: Form submitted, redirect to page 2
Page 2: Wait here until a response is received from the API call on page 1. On response, redirect to page 3.
Page 3: There are a few pages that can be used here, and they are all conditional based on the response.
How do I get the API call to still move forward, while I'm redirecting to page 2 and waiting for the response?
1 Reply
Asian paper waspOP
We decided to use local storage to store data that can be retrieved on the next page.