---
title: onUndoRequest()
framework: spatialpreview
role: symbol
role_heading: Instance Method
platforms: [macOS 27.0+]
path: spatialpreview/usdpreviewsession/changelistdelegate/onundorequest()
---

# onUndoRequest()

An undo has been requested in the session

## Declaration

```swift
@MainActor func onUndoRequest()
```
