---
title: "actionWasDiscarded(_:)"
framework: tabletopkit
role: symbol
role_heading: Instance Method
path: "tabletopkit/tabletopgame/observer/actionwasdiscarded(_:)"
---

# actionWasDiscarded(_:)

Called once for every local action that is discarded because there is insufficient space to enqueue and become pending. Every local action will, in order, generate either an actionIsPending or actionWasDiscarded callback in the next update after it was added.

## Declaration

```swift
func actionWasDiscarded(_ action: some TabletopAction)
```

## See Also

### Validating actions

- [validateAction(_:snapshot:)](tabletopkit/tabletopgame/observer/validateaction(_:snapshot:).md)
- [actionIsPending(_:oldSnapshot:newSnapshot:)](tabletopkit/tabletopgame/observer/actionispending(_:oldsnapshot:newsnapshot:).md)
- [actionWasConfirmed(_:oldSnapshot:newSnapshot:)](tabletopkit/tabletopgame/observer/actionwasconfirmed(_:oldsnapshot:newsnapshot:).md)
- [actionWasRolledBack(_:snapshot:)](tabletopkit/tabletopgame/observer/actionwasrolledback(_:snapshot:).md)
