Replies: 1 comment
-
|
Have you figured it out? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I have an application that stores fairly large documents (about 4000 lines of text). In order to make things smaller and faster I store each "line" as it's own entry in my DB that has it's own foreign key, and then I display each line as it's own LineNode in Lexical, which a foreign key pointing to the line in the DB. When saving my Lexical EditorState to my DB I replace each line with a simple reference to it's foreign key. Now, I don't want to hydrate all 4000 lines at once when I load the document the first time, instead I'd like to hydrate each LineNode with it's corresponding text, from my DB, when the node is scrolled into view.
I have this kind of working right now, but it feels quite hacky. Are there any examples or plugins that can help with this? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions