I’m making a note-taking / todo application, and I need to be able to have thousands of PM editors in a list.
I really don’t want to mess around with virtualization, and I’d really like the DOM to stay unchanged when scrolling.
What I actually want is to do some kind of “hydration”, where the PM editors are initially just static HTML, but when they get scrolled into view, the EditorView
is created and the editor becomes functional. Then, when the editor scrolls out of view, the EditorView
is destroyed and the static HTML takes over.
I know about the DOMParser
API which I think I’ll need, but I’m not sure if any of this will actually work.