Minor Changes
- #6332
4e73172Thanks @dylans! - AddNode.findPath(root, node), which finds a node's path by walking the tree and returnsundefinedif the node isn't there. It doesn't depend on rendering, so it works without slate-react, for example on a server.DOMEditor.findPathuses it as its fallback when the rendered node maps are stale.
Patch Changes
- #6331
cfd8049Thanks @dylans! - Batches insideEditor.withoutNormalizingspend less time on dirty path bookkeeping. An operation that can't map two dirty paths onto one, which is every path-changing operation exceptmerge_node, no longer rebuilds the dirty path key set. 5,000 splits of one block in a batch go from about 7.9 s to 3.7 s. The dirty paths and their order are unchanged.