Pass data from one page to another
Unanswered
Montenegrin Mountain Hound posted this in #help-forum
Montenegrin Mountain HoundOP
Hi, how to send an object containing sensitive data such as password and mobile number from one page to another upon a click event.
The data has to be sent in a click event handler upon success of another call in the handler hence Link can't be used, anyhow Link, useParams or useSearchParams can't be used as the data will be visible in the url which is not optimal.
That data will be used only in two different pages or maybe even just one hence Context creation just sounds like a tedious unrequired task. Ofcourse Redux is just more work.
Its pages and not slots or components hence basic prop passing won't help.
Workflow:
SignUp page: User fills in personal data(including mobile and password), a code is sent to the mobile number for verification, page routed to Verification page WITH ALL THE USER DATA(need help with this).
Verification page: User verifies with the code. THIS PAGE NOW REQUIRES ALL THE USER DATA THAT WAS INSERTED BY THE USER IN SignUp page TO STORE IT IN THE DATABASE.
Login page: User can now login with their phone and password which was stored in the previous page.
The data has to be sent in a click event handler upon success of another call in the handler hence Link can't be used, anyhow Link, useParams or useSearchParams can't be used as the data will be visible in the url which is not optimal.
That data will be used only in two different pages or maybe even just one hence Context creation just sounds like a tedious unrequired task. Ofcourse Redux is just more work.
Its pages and not slots or components hence basic prop passing won't help.
Workflow:
SignUp page: User fills in personal data(including mobile and password), a code is sent to the mobile number for verification, page routed to Verification page WITH ALL THE USER DATA(need help with this).
Verification page: User verifies with the code. THIS PAGE NOW REQUIRES ALL THE USER DATA THAT WAS INSERTED BY THE USER IN SignUp page TO STORE IT IN THE DATABASE.
Login page: User can now login with their phone and password which was stored in the previous page.