Skip to main content

Type Alias: RemovalExtender<TProps>

RemovalExtender<TProps> = (request) => ReadonlySet<EntryId>

Defined in: model/edit-request.ts:95

The Entries this transaction removes on top of its body's own removals. Core calls it once per transaction, after the body and before the EditExtender, and never on a drag preview.

A returned id takes its whole subtree with it, the same as entries.remove(id). An id the store does not know, or one this transaction already removes, is skipped in silence. The call does not repeat: the hook returns its whole closure in one answer. It does not ask the lock.

Type Parameters​

TProps​

TProps = Record<string, unknown>

Parameters​

request​

EditRequest<TProps>

Returns​

ReadonlySet<EntryId>