In multiple places throughout the app we direct people from one page another and if the VoterRegLookup form is on another page the user has to fill out their information again.
Enhancement
Description
Saving the selected voter information into the sessionStorage will prevent users from having to enter their information multiple times.
Implementation
It should work by saving the selected selectedVoter to sessionStorage in VoterRegLookup.
When ever the component is mounted check to see if there is a selectedVoter and save it to state.
Also provide a 'Clear' button that will reset the form and remove the selectedVoter from sessionStorage
This is a:
In multiple places throughout the app we direct people from one page another and if the VoterRegLookup form is on another page the user has to fill out their information again.
Enhancement
Description
Saving the selected voter information into the sessionStorage will prevent users from having to enter their information multiple times.
Implementation
It should work by saving the selected
selectedVoter
to sessionStorage in VoterRegLookup.When ever the component is mounted check to see if there is a selectedVoter and save it to state.
Also provide a 'Clear' button that will reset the form and remove the selectedVoter from sessionStorage