--- layout: docs title: DraftChangeSet edit_url: "https://github.com/nylas/N1/blob/master/src/flux/stores/draft-store-proxy.coffee" ---
As the user interacts with the draft, changes are accumulated in the DraftChangeSet associated with the store proxy. The DraftChangeSet does two things:
applyToModel
, which allows you to optimistically apply changes
to a draft object. When the proxy vends the draft, it passes it through this
function to apply uncommitted changes. This means the Draft provided by the
DraftStoreProxy will always relfect recent changes, even though they're
written to the database intermittently.