docs/research/decisions/slate-v2-overlay-superiority-vs-legacy-and-field.md
Why is the current Slate v2 overlay architecture better than legacy Slate, and how should it be judged against the editor-architecture candidate field?
Accept the following read:
Legacy Slate made one decorate callback pretend it could own:
That mixed incompatible ownership models into one surface.
Slate v2 fixes that by splitting the system into:
Decoration
transient, overlap-friendly, mapped or externally indexedAnnotation
durable, id-bearing, bookmark-backedWidget
anchored UI, geometry-derived, narrower public surfaceThat win is not cosmetic. It gives the system:
Bookmark as the public durable-anchor story instead of RangeRef leakageSlate v2 now aligns with ProseMirror on the important overlay ideas:
It still does not beat ProseMirror as the most disciplined general document engine. That is not the right claim.
Slate v2 now aligns with Lexical on:
Lexical is still the stronger end-to-end runtime challenger. Slate v2 is better read as “finally using the same good ideas” than “beating Lexical outright.”
Slate v2 overlay architecture still beats legacy Slate's decorate story.
Do not read that as a current large-document typing superiority claim:
fresh 5000/10000-block shell-island comparisons lose steady typing/select lanes
to legacy chunking-on.
Tiptap is still the productization and packaging benchmark.
The useful lesson from Tiptap is:
not:
Slate v2 does not solve page-layout composition the way Premirror + Pretext are trying to. That is a different lane.
What Slate v2 does get right is:
Slate v2 now agrees with the strongest non-editor lessons too:
The honest superiority claim is:
That is a stronger and more defensible claim than pretending the field does not exist.