The project I’m working on wants to store some data in LocalStorage of the browser, so at the client location. When deployed, it remembers this perfectly. But in the sandbox of AI Studio, this LocalStorage is cleared every time the app restarts.
This is a minor annoyance which I solved by including a “Save” and “Load” method to my apps. The “Save” exports the data as a JSON file or a ZIP file and the “Load” can read it back again. This is also practical for the users as this generates backups for them.
But it would be practical if the App inside the AI Studio sandbox would still persist this local storage in some way. Because now I wonder how many copies of all this data exists in all the LocalStorage items of my browser.
Hi @Katje ,
Thank you for your feedback. We appreciate you taking the time to share your thoughts with us, and we’ll be filing a feature request.
To help us prioritize this request effectively, any additional details you can provide regarding the impact this feature would have would be very helpful.
Not many details that I need adding. As I deploy my apps to the Internet, I need users to provide their own API key. In several apps, they also have to provide their name, select a color mode or some other details. These details can become persistent if I store them in the local storage of the browser, as I don’t want to save any of this data on my server. (Something with cookie popups being required if I’d do that.)
But in AI Studio, while developing the App, the preview of the app doesn’t seem to persist data in local storage as it tends to get cleared when the app reloads. This is not a big problem, as I added an import/export mechanism to my settings dialog. Which means I download all settings just once, and import them over and over again when the App reloads in AI Studio.
But the deployed App doesn’t need this, as it keeps the settings in local storage…