From ea9a4e86f6ee4abb572b436479ee4943c11e336f Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 7 May 2023 20:38:45 -0300 Subject: [PATCH] SyncedStore: x --- SyncedStore.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SyncedStore.md b/SyncedStore.md index bdecc8c..5985969 100644 --- a/SyncedStore.md +++ b/SyncedStore.md @@ -19,3 +19,10 @@ const item = anormalArray[1]; // is {b:'b'} anormalArray.splice(2); 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... +```