--- layout: docs title: DraftStoreProxy edit_url: "https://github.com/nylas/N1/blob/master/src/flux/stores/draft-store-proxy.coffee" ---
DraftStoreProxy is a small class that makes it easy to implement components that display Draft objects or allow for interactive editing of Drafts.
draft()
, and
triggers whenever that draft instance has changed.draft()
always has pending changes applied.Return Values |
---|
Returns the draft object with the latest changes applied. |
Return Values |
---|
Returns the initial body of the draft when it was pristine, or null if the draft was never pristine in this editing session. Useful for determining if the body is still in an unchanged / empty state. |