I'm using lexical editor on next js 14. I used it for content writing purpose. I firstly get the data (content) in html from lexical and store it into my db through api's and then feteching data at onMount and painting it to lexical.
My FLOW:
Lexical editor => HTML => DB
DB => HTML =>Lexical editor
The editor tools (like bold, italic, etc.) are not working properly after navigating away from the editor page and returning back. The data is fetched and displayed in the editor, but the tools aren't functioning until you manually refresh the page. And this happened at second time. At first time all works fine but when I navigate to other compoentn and come again, The tools are not wokring but the data was paint.
Could you please help me to figour out this problme?
If you post a full example of the problem (e.g. a repo that can run on stackblitz) where all of the code is present to reproduce and debug the issue, I can take a look
I'm using lexical editor on next js 14. I used it for content writing purpose. I firstly get the data (content) in html from lexical and store it into my db through api's and then feteching data at onMount and painting it to lexical.
My FLOW: Lexical editor => HTML => DB DB => HTML =>Lexical editor
lexical version: "^0.14.2"
Code example:
The current behavior and problem:
The editor tools (like bold, italic, etc.) are not working properly after navigating away from the editor page and returning back. The data is fetched and displayed in the editor, but the tools aren't functioning until you manually refresh the page. And this happened at second time. At first time all works fine but when I navigate to other compoentn and come again, The tools are not wokring but the data was paint.
Could you please help me to figour out this problme?