Hi,Small issue that I do not know how to go around it.The page that my editor is from time to time have to run an operation to need to call a server action.
This do not change any value inside the screen, but triger a render.
In the moment it renders undo and redo buttons of the editor became disabled and lost all user change history.
someone do know a way to keep undo a and redo history after a render event?
Try with is it will help you
When the screen re-renders, the editor component gets reinitialized — that’s why the undo/redo history resets.
To fix this, store the editor’s state (content + history) in a variable or client-side object before the render, then restore it after reinitialization.
Even updating an unrelated variable used somewhere in the same Block can trigger re-render. So, the best option is to prevent the editor from re-rendering.