fn
withFreshIds
testedCopies of blocks under new ids. Pasted blocks must never reuse the ids they
were copied with: the same id twice in a document breaks selection and, in
the CRDT, re-inserting a known id reactivates the tombstoned original
instead of adding a block.
Signature
ts
export function withFreshIds(blocks: readonly Node[]): Node[]{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
blocks | readonly Node[] | — |
Returns
Node[]