Recently I was working with closure actions and learned something new about promises in the process. So you’re probably familiar with this:
If you’ve had to work with Ember Data and non-standard APIs, you may have dug into the adapters and serializers a bit and seen
snapshot as a parameter to a few of the methods. If you dug a little deeper, you may have learned that a snapshot is an instance of
DS.Snapshot, a private class in Ember Data. If you visit the API docs for this class, it doesn’t really tell you what it is. It just tells you what methods and properties are available on snapshots. So what is a snapshot and why do you care?