docs(text-editor): document that clear discards pending changes and the flush-first pattern - #4239
docs(text-editor): document that clear discards pending changes and the flush-first pattern#4239john-traas wants to merge 1 commit into
Conversation
…he flush-first pattern
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Documentation has been published to https://lundalogik.github.io/lime-elements/versions/PR-4239/ |
What
Documents two facts about
clear()that the JSDoc omits, on bothlimel-text-editorand its ProseMirror adapter:change, so content typed justbefore the call is never reported;
No behavior change.
Why
clear()silently swallows a pendingchange, and the only way to learn thattoday is reading the implementation. The one in-tree consumer (the AI chat
composer in lime-crm-components) depends on the flush-first pattern for
correctness, but the pattern is not discoverable from the API docs — the next
consumer would have to rediscover it.
Verification
🤖 Generated with Claude Code