#(I had a bug in my code) breaking my Store Updates when switching a primitive value to an array
6 messages · Page 1 of 1 (latest)
So what is your advice to your future self that others can benefit from?
I was separating the updates into two components and I was not setting the update in the store properly: my target was the whole property and not the specific index in the array
(I had a bug in my code) breaking my Store Updates when switching a primitive value to an array
It was hidden deep in a component (due to updating multiple things at once)
My recommendation would be to define custom setter functions right where you create the store and pass those around rather than giving anyone else access to the generic store setter function.