You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
martinjagodic
changed the title
Decap CMS suffers from the bug in Slape editor (for which the workaround is known)
Markdown editor refreshes automatically and looses all its content (known Slate bug)
Jan 19, 2024
Slate editor (markdown editor) refreshes automatically and looses all its content
Then it shows following error:
Which reason is described here:
ianstormtaylor/slate#4081
Also it describes a workaround (I provided it below)
To Reproduce
Just use the markdown editor for more that 10-15 minutes.
Expected behavior
The editor does not refresh itself
Applicable Versions:
Additional context
You have useMemo call at line 98 here:
https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-markdown/src/MarkdownControl/VisualEditor.js
It should be replaced with useRef or at least useState as stated there:
ianstormtaylor/slate#4081 (comment)
The text was updated successfully, but these errors were encountered: