Y-indexeddb sync issue

Hi there!

I have encountered an issue when integrating valtio-yjs with y-indexeddb and I am unsure whether it is a bug or a misunderstanding of how y-indexeddb works.

I first opened the issue in the valtio-yjs repo. Please have a look for a reproduction and full description of the issue: y-indexeddb · Issue #26 · dai-shi/valtio-yjs · GitHub

The tldr is that when using y-indexeddb and an array in valtios proxy state the first state added is persisted, but after reloading the page and adding more state only the initial first state is reloaded on page refresh.

I already answered in the github ticket.