Skip to content

Instantly share code, notes, and snippets.

@macu
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save macu/9369304 to your computer and use it in GitHub Desktop.

Select an option

Save macu/9369304 to your computer and use it in GitHub Desktop.
Compiled notes on Ember, things to be aware of

Ember Data

  • this.store.find('modelType'); always hits the server, because no ID is given, and there may be new records on the server. Use find in the application route, and all in other places to avoid polling the server every time.
  • this.store.find('modelType', model_id); only hits the server if the model with the given type and ID is not already in the cache.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment