Encountered a weird issue storing a value in an array in the store. I wrote a quick example, two text fields “all” and “somevalue” who’s values display from a computed call (10/55). I also added some console logging to watch what is going on.
Press “click” and I display the current state of the first element of the state array adata which is 10 and the entire array using getters (shows [10,20,30]) as expected and the value of singlevalue @ 55.
I then commit 44 to adata and 88 to ‘somevalue’. The second text box reflects the second commit as it changes to 88 while the first text box remains at 10. Click “after” and in the console you see the second dump of data only now, adata still shows 10 while the array dump shows [44,20,30].
adata and adata no longer match.
What am I doing wrong in setting this value??