---
title: stateSerialization
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/cksyncengine-5sie5/event/stateupdate/stateserialization
---

# stateSerialization

The current state of the sync engine.

## Declaration

```swift
let stateSerialization: CKSyncEngine.State.Serialization
```

## Discussion

Discussion important: Always persist the most recent state to disk alongside your app data. The sync engine requires you to provide it with the most recent serialized state at initialization, and it’s your responsibility to make sure the state is available across app launches.
