SyncedStore: x

This commit is contained in:
Cat /dev/Nulo 2023-05-07 20:38:45 -03:00
parent 50095a3a48
commit ea9a4e86f6

View file

@ -19,3 +19,10 @@ const item = anormalArray[1]; // is {b:'b'}
anormalArray.splice(2); anormalArray.splice(2);
item; // is undefined :( item; // is undefined :(
``` ```
Workaround by creating a new object:
```js
const item = { ...anormalArray[1] };
// although if you have object or array children it may still break...
```