Load state on SSR - Nextjs #3765
Replies: 3 comments 1 reply
-
|
Are you expecting to have the Lexical editor hydrate from the HTML in the DOM? As you mention, you need to use |
Beta Was this translation helpful? Give feedback.
-
|
Hello, fellow contributors! First of all, thank you for the hard work. This library was built with a great perspective, as a "framework". I have the reverse scenario in mind: I'm using Lexical as content editor in a project that persists the state (as JSON) in database. Then, based on this state, the user can (re-)edit it or view it. To make it scale for users who just have read access to the content, I want it to be rendered on server-side (without any dependencies from a client-side perspective). But, with the current implementation of Could we discuss how to fulfill this kind of scenario? |
Beta Was this translation helpful? Give feedback.
-
|
^ comment above would be an awesome feature to have |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We have a webapp build with nextjs and we store data that come from an html editor as an html string. We'd like to make the transition to lexical but we're facing some problems loading the state on server side.
Any thoughts on this problem will be really appreciated.
Beta Was this translation helpful? Give feedback.
All reactions