How do i pass data from one page to another
Unanswered
Semipalmated Sandpiper posted this in #help-forum
Semipalmated SandpiperOP
I want to pass the form data collected from the registration page to another page. Instead of working with the datas(making api calls amd all) from the registration page, i want to do it in the other page. I am using router to change page. Is there a way to pass in data using the router?
3 Replies
Peterbald
The form would be a client-side component, so just store the data in localStorage, or you can use context provider (as deep as possible, and store data in there)
Schneider’s Smooth-fronted Caiman
You could also use url param if it’s non sensitive data
you can wrap the pages in a layout, which has a context or similar which holds the data