---
title: willSave
framework: swiftdata
role: symbol
role_heading: Type Property
path: swiftdata/modelcontext/willsave
---

# willSave

A notification that posts when the context is about to process pending inserts, changes, and deletes.

## Declaration

```swift
static let willSave: Notification.Name
```

## Discussion

Discussion note: Notifications with this name don’t contain a userInfo dictionary.

## See Also

### Registering for notifications

- [didSave](swiftdata/modelcontext/didsave.md)
- [ModelContext.NotificationKey](swiftdata/modelcontext/notificationkey.md)
