Controlled reorder
A reorder callback reports a commit; it does not mutate application data.
-
sourceIdsis the canonical move set in its pre-move collection and item order. -
destination.sectionIdidentifies the destination section. It isnullfor an unsectioned collection. -
destination.beforeIdidentifies the item immediately after the insertion point. It isnullwhen inserting at the end of the destination collection. -
nextOrderis the proposed complete order, reconciled against the latest rendered identities. Render it to accept the commit, apply it later to delay the update, or keep the previous order to restore it.
Do not calculate a destination index from stale arrays. Build the next data value from nextOrder identities and attach the callback with onReorder:
Data-driven entry and exit outside an active reorder is normal. During a live interaction, identity or structural changes cancel rather than producing a partial or stale commit.
Inspect the type-checked example source.