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
Whenever the value change, the useLayoutEffect callback is triggered, so it will call the crepe.destroy() first, and then re-creating a new editor with the original default content.
Initial checklist
Affected packages and versions
Milkdown Playgroundv7.3.0
Link to runnable example
No response
Steps to reproduce
Type anything into the editor, switch between light modes, and the source text will be reset to default text.
Expected behavior
You keep your text (sorry for lame response, but I feel like this is a given)
Actual behavior
The preview will not be effected, but the source text will be reset to the default text.
Runtime
Chrome
OS
Linux
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: