editor.update tags on empty updates persist sometimes
Open
all-platforms-bug
core
- Dominant language
- TypeScript
- Stars
- 23.9k
- Forks
- 2.2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 55
Description
This logic defines when to commit or reset the update data:
```
const shouldUpdate =
editor._dirtyType !== NO_DIRTY_NODES ||
editorStateHasDirtySelection(pendingEditorState, editor);
```
**When tags persist**
1. An update that marks a node as dirty
2. An empty update with tags
**When tags do not persist**
1. An empty update with tags
2. An update that marks a node as dirty
Both are batched but they have different behaviors
Contributor guide
Assessment
This issue has not been assessed yet.