Hi,
I have some information similar to "user experience settings," which I currently call in any component where needed. These settings are important, including allowed currencies, languages, task statuses, etc.
I was considering making an API call upon login to save this information in local storage. However, what if the local storage is edited? These settings are used to update the database, and I cannot risk using potentially altered data from local storage (e.g., a "selected status") since it could be injected maliciously.
What solutions do you use in this case? Iβm exploring alternatives because, as it stands, I have a lot of requests just to retrieve the app's status, which impacts performance.
I cannot use context because this information is shared across multiple pages, and context (variables) only works within the same page.
Thank you!