As of today, I've been using localStorage to save an array of objects named cart (path is localStorage.values.cart):
I'd like to add to localStorage.values a second array of objects named payments (path would be localStorage.values.payments).
According to Retool documentation, a key is required when using localStorage.setValue() function. localStorage.values is the object I'd like to update with a variable I've set in my JS script containing both 'cart' and 'payments' arrays of objects.
Is this possible somehow - a command similar to the backslash in DOS for example - or do I need to revise my localStorage data structure?
Too bad there's no way (apparently) to write to localStorage.values an object containing arrays of objects (or even better, the possibility to call .setIn() function in localStorage).
Well, that's great news! I have certainly messed things up on my end because I was constantly overwriting my localStorage using successive localStorage.setValue().