Skip to content

Commit 0f25293

Browse files
formatting correction (no semicolons)
1 parent 55c1524 commit 0f25293

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/content/8/en/part8b.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ We'll start with the following code for our application:
3535
import ReactDOM from 'react-dom/client'
3636
import App from './App'
3737

38-
import { ApolloClient, HttpLink, InMemoryCache, gql } from '@apollo/client';
38+
import { ApolloClient, HttpLink, InMemoryCache, gql } from '@apollo/client'
3939

4040
const client = new ApolloClient({
4141
link: new HttpLink({ uri: 'http://localhost:4000' }),
@@ -84,8 +84,8 @@ The application can communicate with a GraphQL server using the *client* object.
8484
import ReactDOM from 'react-dom/client'
8585
import App from './App'
8686

87-
import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client';
88-
import { ApolloProvider } from '@apollo/client/react'; // highlight-line
87+
import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client'
88+
import { ApolloProvider } from '@apollo/client/react' // highlight-line
8989

9090
const client = new ApolloClient({
9191
link: new HttpLink({ uri: 'http://localhost:4000' }),
@@ -109,8 +109,8 @@ Currently, the use of the hook function [useQuery](https://www.apollographql.com
109109
The query is made by the <i>App</i> component, the code of which is as follows:
110110

111111
```js
112-
import { gql } from '@apollo/client';
113-
import { useQuery } from '@apollo/client/react';
112+
import { gql } from '@apollo/client'
113+
import { useQuery } from '@apollo/client/react'
114114

115115
const ALL_PERSONS = gql`
116116
query {
@@ -243,8 +243,8 @@ The solution is as follows:
243243

244244
```js
245245
import { useState } from 'react'
246-
import { gql } from '@apollo/client';
247-
import { useQuery } from '@apollo/client/react';
246+
import { gql } from '@apollo/client'
247+
import { useQuery } from '@apollo/client/react'
248248

249249
const FIND_PERSON = gql`
250250
query findPersonByName($nameToSearch: String!) {
@@ -400,8 +400,8 @@ Let's create a new component for adding a new person to the directory:
400400

401401
```js
402402
import { useState } from 'react'
403-
import { gql } from '@apollo/client';
404-
import { useMutation } from '@apollo/client/react';
403+
import { gql } from '@apollo/client'
404+
import { useMutation } from '@apollo/client/react'
405405

406406
const CREATE_PERSON = gql`
407407
// ...
@@ -686,7 +686,7 @@ Interesting lines on the code have been highlighted.
686686
687687
```js
688688
import { useState } from 'react'
689-
import { useMutation } from '@apollo/client/react';
689+
import { useMutation } from '@apollo/client/react'
690690

691691
import { EDIT_NUMBER } from '../queries'
692692

src/content/8/en/part8d.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Interesting lines in the code have been highlighted:
5555

5656
```js
5757
import { useState, useEffect } from 'react'
58-
import { useMutation } from '@apollo/client/react';
58+
import { useMutation } from '@apollo/client/react'
5959
import { LOGIN } from '../queries'
6060

6161
const LoginForm = ({ setError, setToken }) => {
@@ -165,7 +165,7 @@ After the backend changes, creating new persons requires that a valid user token
165165

166166
```js
167167
import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client' // highlight-line
168-
import { ApolloProvider } from '@apollo/client/react';
168+
import { ApolloProvider } from '@apollo/client/react'
169169
import { setContext } from '@apollo/client/link/context' // highlight-line
170170

171171
// highlight-start

src/content/8/en/part8e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ import {
649649
ApolloClient, InMemoryCache, createHttpLink,
650650
split // highlight-line
651651
} from '@apollo/client'
652-
import { ApolloProvider } from '@apollo/client/react';
652+
import { ApolloProvider } from '@apollo/client/react'
653653
import { setContext } from '@apollo/client/link/context'
654654

655655
// highlight-start

0 commit comments

Comments
 (0)