Enode — API Reference
    Preparing search index...
    • Host-side implementation of applyUndoable for a workout draft: applies the change, then shows a toast whose Undo restores the items as they were.

      Parameters

      Returns (change: UndoableDraftChange) => void

      Only ONE undo is live at a time, and only while nothing else has changed the items since: restoring the snapshot after a later edit would silently discard that edit, so any other change (or a newer undoable one) withdraws the toast. The toast is also withdrawn when the host unmounts (drawer closed).