Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add note about upading data with store.load #558

Closed
wants to merge 1 commit into from

3 participants

@darthdeus
Collaborator

The README specifies that store.load is meant to be used for pre-loading the data, but this isn't the only use case. Especially since it is one of the few ways to update the data once it has been fetched.

@darthdeus darthdeus Add note about upading data with store.load
The README specifies that `store.load` is meant to be used
for pre-loading the data, but this isn't the only use case.
Especially since it is one of the few ways to update the data
once it has been fetched.
6fcd09a
@ahawkins

@darthdeus ember-data has DS.Model.reload() now. Isn't that better?

@wagenet
Owner

We removed most of the README so this doesn't apply anymore. @darthdeus consider adding this to the guides on the main website.

@wagenet wagenet closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 28, 2012
  1. @darthdeus

    Add note about upading data with store.load

    darthdeus authored
    The README specifies that `store.load` is meant to be used
    for pre-loading the data, but this isn't the only use case.
    Especially since it is one of the few ways to update the data
    once it has been fetched.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
4 README.md
@@ -535,6 +535,10 @@ App.store.loadMany(App.Person, [{
}]);
```
+This can also become useful when you're changing the data outside of Ember Data,
+such as by doing a custom AJAX request. You can then use `App.store.load` to update
+the loaded data.
+
## Adapter API
An adapter is an object that receives requests from a store and translates
Something went wrong with that request. Please try again.