SyncedStore: x
This commit is contained in:
parent
50095a3a48
commit
ea9a4e86f6
1 changed files with 7 additions and 0 deletions
|
@ -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...
|
||||||
|
```
|
||||||
|
|
Reference in a new issue