Does the undomanager store its stack in y.doc?

Hi all! I’m building a Google Slides-like application, and I’m using Yjs mainly because it’s robust, and I couldn’t find a better undo manager. Collaborative editing is not yet needed.

I’m facing the problem that when I load my y.doc from the server, it seems that the undo manager doesn’t restore its stack. So, I can’t undo changes I made in my previous session. I’m storing the Uint8Array of the y.doc in my database and applying it on page load.

I’m new to Yjs, but I’m already loving all the things it can do!