In my application,onLoad lands on the Customer Information page, where I execute the getSubmission data API to fetch all submission details from the database. I need these submission details to be available across all pages.
Currently, I store the data in a local variable and use it throughout the pages. However, when the user is on the Service page and refreshes the tab, all local variables are cleared, and the app reloads on the Service page.
Is there a way to make the user land on the Customer Information page every time they refresh?
Alternatively, is there a way to conditionally execute APIs so that the required data is fetched again without forcing navigation?
On Alpha studio everything assigned to local or co inside the alpha object it is accessible across all the pages when navigating to other pages untill the whole application is refreshed/loaded.
If you want data to be available even after refresh you can use localstorage.
What you can try doing is checking on Before Init if the submission data is available on local if not route a user back to Customer Information page.
I don’t think the is a way unless if you doing it on the custom code which becomes messy.
In Alpha Studio, since data stored in the alpha.local or alpha.co object is only retained during navigation and lost after a full refresh, how can I persist form submission data more cleanly—without relying on messy custom code or manually managing localStorage?