Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import text fixes #3647

Merged
merged 2 commits into from
Jul 17, 2018
Merged
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
8 changes: 4 additions & 4 deletions docs/source/advanced/network-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const client = new ApolloClient({
And if you needed to pass additional options to [`fetch`](https://github.github.io/fetch/):

```js
import ApolloClient from 'apollo-client';
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http';

const link = new HttpLink({
Expand All @@ -52,7 +52,7 @@ Apollo Link is designed from day one to be easy to use middleware on your reques
The following examples shows how you'd create a middleware. In both examples, we'll show how you would add an authentication token to the HTTP header of the requests being sent by the client.

```js
import ApolloClient from 'apollo-client';
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http';
import { ApolloLink, concat } from 'apollo-link';

Expand All @@ -79,7 +79,7 @@ The above example shows the use of a single middleware joined with the HttpLink.
The following example shows the use of multiple middlewares passed as an array:

```js
import ApolloClient from 'apollo-client';
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http';
import { ApolloLink, from } from 'apollo-link';

Expand Down Expand Up @@ -133,7 +133,7 @@ Much like middlewares, Apollo Link was designed to make afterwares easy and powe
The following example demonstrates how to implement an afterware function.

```js
import ApolloClient from 'apollo-client';
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http';
import { onError } from 'apollo-link-error'

Expand Down