Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion guides/release/configuring-ember/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Ember.ENV.LOG_STACKTRACE_ON_DEPRECATION = true;
### Implement a window error event listener to log all errors in production

```javascript {data-filename=app/app.js}
import fetch from 'fetch';
// ...
window.addEventListener('error', function(error) {
fetch('/error-notification', {
Expand Down
2 changes: 0 additions & 2 deletions guides/release/in-depth-topics/making-api-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ Some common tools for making [CRUD](https://en.wikipedia.org/wiki/Create,_read,_
for formatting requests, normalizing responses, and efficiently
managing a local cache of data.
It is included by default in new Ember apps.
- Native JavaScript methods like [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). Install [`ember-fetch`](https://github.com/ember-cli/ember-fetch) in order to provide support for older browsers, and `import fetch from 'fetch'` to use it.
- [jQuery Ajax](https://api.jquery.com/jquery.ajax/) requests. See [the guide for optional features](../../configuring-ember/optional-features/) in order to be able to `import jQuery from 'jquery'` in your app.
- Other Ember-specific addons for data loading. Search for them on [Ember Observer](https://emberobserver.com)
- ...and many more general JavaScript data fetching libraries, which you can install following [this guide](../../addons-and-dependencies/managing-dependencies/).

Expand Down
1 change: 0 additions & 1 deletion guides/release/models/finding-records.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ And if the adapter for the `User` model defines a `queryRecord()` method that ta

```javascript {data-filename=app/adapters/user.js}
import Adapter from '@ember-data/adapter';
import fetch from 'fetch';

export default class UserAdapter extends Adapter {
queryRecord(store, type, query) {
Expand Down
1 change: 0 additions & 1 deletion guides/release/models/pushing-records-into-the-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ so it can be accessed by other parts of your application.
import Route from '@ember/routing/route';
import { service } from '@ember/service';
import { action } from '@ember/object';
import fetch from 'fetch';

export default class ConfirmPaymentRoute extends Route {
@service store;
Expand Down
2 changes: 0 additions & 2 deletions guides/release/routing/asynchronous-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ Much of the power of promises comes from the fact that they can be
chained together to perform sequential asynchronous operations:

```javascript
import fetch from 'fetch';

let usernamesPromise = fetch('/usernames.json');

usernamesPromise.then(response => response.json())
Expand Down