I am trying to update local storage, but for the life of me I cannot get the syntax of the key correct in the localStorage.setValues function. The data in localStorage looks like this, and I am trying to update the build_id. Can anyone give me some pointers please...?
Many thanks for the thoughts - i will give your suggestion a go.
In terms of the technical difference between local storage and temp state, are you able to give me a quick run down off the differences?
For performance reasons I am looking to copy all of my data (from Firestore) and then work with it locally before saving changes back to the DB. In this scenario would you recommended one option over the other?
Yea! In my opinion, the biggest reason to use localStorage is if you want some kind of persistence for a particular user between sessions. Otherwise, temp state integrates a little better with your Retool app, being able to use setIn is a great example of that, you can also use the UI of certain event handlers to set temp state values, etc.
I agree with @ScottR that temp state seems like a good way to go here do you have any particular wants with respect to how you're storing your data for manipulation?