Skip to content

Commit

Permalink
Merge pull request #7224 from Gaurav0/fix_docs_links
Browse files Browse the repository at this point in the history
[DOCS] fix links on @ember-data/store package intro
  • Loading branch information
rwjblue committed Jun 12, 2020
2 parents 18481f0 + 699250a commit 89b630f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions packages/store/addon/-private/system/core-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,20 +189,20 @@ function deprecateTestRegistration(
The store provides multiple ways to create new record objects. They have
some subtle differences in their use which are detailed below:
[createRecord](Store/methods/createRecord?anchor=createRecord) is used for creating new
[createRecord](../classes/Store/methods/createRecord?anchor=createRecord) is used for creating new
records on the client side. This will return a new record in the
`created.uncommitted` state. In order to persist this record to the
backend, you will need to call `record.save()`.
[push](Store/methods/push?anchor=push) is used to notify Ember Data's store of new or
[push](../classes/Store/methods/push?anchor=push) is used to notify Ember Data's store of new or
updated records that exist in the backend. This will return a record
in the `loaded.saved` state. The primary use-case for `store#push` is
to notify Ember Data about record updates (full or partial) that happen
outside of the normal adapter methods (for example
[SSE](http://dev.w3.org/html5/eventsource/) or [Web
Sockets](http://www.w3.org/TR/2009/WD-websockets-20091222/)).
[pushPayload](Store/methods/pushPayload?anchor=pushPayload) is a convenience wrapper for
[pushPayload](../classes/Store/methods/pushPayload?anchor=pushPayload) is a convenience wrapper for
`store#push` that will deserialize payloads if the
Serializer implements a `pushPayload` method.
Expand Down Expand Up @@ -935,7 +935,7 @@ abstract class CoreStore extends Service {
});
```
See [peekRecord](Store/methods/peekRecord?anchor=peekRecord) to get the cached version of a record.
See [peekRecord](../classes/Store/methods/peekRecord?anchor=peekRecord) to get the cached version of a record.
### Retrieving Related Model Records
Expand Down Expand Up @@ -1452,7 +1452,7 @@ abstract class CoreStore extends Service {
otherwise it will return `null`. A record is available if it has been fetched earlier, or
pushed manually into the store.
See [findRecord](Store/methods/findRecord?anchor=findRecord) if you would like to request this record from the backend.
See [findRecord](../classes/Store/methods/findRecord?anchor=findRecord) if you would like to request this record from the backend.
_Note: This is a synchronous method and does not return a promise._
Expand Down Expand Up @@ -1917,7 +1917,7 @@ abstract class CoreStore extends Service {

/**
This method makes a request for one record, where the `id` is not known
beforehand (if the `id` is known, use [`findRecord`](Store/methods/findRecord?anchor=findRecord)
beforehand (if the `id` is known, use [`findRecord`](../classes/Store/methods/findRecord?anchor=findRecord)
instead).
This method can be used when it is certain that the server will return a
Expand Down Expand Up @@ -2187,7 +2187,7 @@ abstract class CoreStore extends Service {
});
```
See [peekAll](Store/methods/peekAll?anchor=peekAll) to get an array of current records in the
See [peekAll](../classes/Store/methods/peekAll?anchor=peekAll) to get an array of current records in the
store, without waiting until a reload is finished.
### Retrieving Related Model Records
Expand Down Expand Up @@ -2230,7 +2230,7 @@ abstract class CoreStore extends Service {
```
See [query](Store/methods/query?anchor=query) to only get a subset of records from the server.
See [query](../classes/Store/methods/query?anchor=query) to only get a subset of records from the server.
@since 1.13.0
@method findAll
Expand Down Expand Up @@ -2320,7 +2320,7 @@ abstract class CoreStore extends Service {
locally created records of the type, however, it will not make a
request to the backend to retrieve additional records. If you
would like to request all the records from the backend please use
[store.findAll](Store/methods/findAll?anchor=findAll).
[store.findAll](../classes/Store/methods/findAll?anchor=findAll).
Also note that multiple calls to `peekAll` for a given type will always
return the same `RecordArray`.
Expand Down Expand Up @@ -2797,7 +2797,7 @@ abstract class CoreStore extends Service {
If you're streaming data or implementing an adapter, make sure
that you have converted the incoming data into this form. The
store's [normalize](Store/methods/normalize?anchor=normalize) method is a convenience
store's [normalize](../classes/Store/methods/normalize?anchor=normalize) method is a convenience
helper for converting a json payload into the form Ember Data
expects.
Expand Down Expand Up @@ -3157,7 +3157,7 @@ abstract class CoreStore extends Service {

/**
`normalize` converts a json payload into the normalized form that
[push](Store/methods/push?anchor=push) expects.
[push](../classes/Store/methods/push?anchor=push) expects.
Example
Expand Down
6 changes: 3 additions & 3 deletions packages/store/addon/-private/system/ds-model-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,20 @@ type DSModelClass = import('@ember-data/model').default;
The store provides multiple ways to create new record objects. They have
some subtle differences in their use which are detailed below:
[createRecord](Store/methods/createRecord?anchor=createRecord) is used for creating new
[createRecord](../classes/Store/methods/createRecord?anchor=createRecord) is used for creating new
records on the client side. This will return a new record in the
`created.uncommitted` state. In order to persist this record to the
backend, you will need to call `record.save()`.
[push](Store/methods/push?anchor=push) is used to notify Ember Data's store of new or
[push](../classes/Store/methods/push?anchor=push) is used to notify Ember Data's store of new or
updated records that exist in the backend. This will return a record
in the `loaded.saved` state. The primary use-case for `store#push` is
to notify Ember Data about record updates (full or partial) that happen
outside of the normal adapter methods (for example
[SSE](http://dev.w3.org/html5/eventsource/) or [Web
Sockets](http://www.w3.org/TR/2009/WD-websockets-20091222/)).
[pushPayload](Store/methods/pushPayload?anchor=pushPayload) is a convenience wrapper for
[pushPayload](../classes/Store/methods/pushPayload?anchor=pushPayload) is a convenience wrapper for
`store#push` that will deserialize payloads if the
Serializer implements a `pushPayload` method.
Expand Down

0 comments on commit 89b630f

Please sign in to comment.