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

Create a new pull request by comparing changes across two branches #178

Merged
merged 4 commits into from
Dec 19, 2023
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
5 changes: 0 additions & 5 deletions .changeset/fuzzy-eyes-lick.md

This file was deleted.

4 changes: 2 additions & 2 deletions .size-limits.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"dist/apollo-client.min.cjs": 37960,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32018
"dist/apollo-client.min.cjs": 37901,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 31976
}
2 changes: 1 addition & 1 deletion docs/source/data/queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This article also assumes that you've already set up Apollo Client and have wrap

The `useQuery` [React hook](https://react.dev/reference/react) is the primary API for executing queries in an Apollo application. To run a query within a React component, call `useQuery` and pass it a GraphQL query string. When your component renders, `useQuery` returns an object from Apollo Client that contains `loading`, `error`, and `data` properties you can use to render your UI.

> **Note:** in Apollo Client >= 3.8, Suspense data fetching hooks are available for querying data within `<Suspense />` boundaries using React 18's new concurrent rendering model. For more information see Apollo Client's [Suspense docs](../suspense/).
> **Note:** in Apollo Client >= 3.8, Suspense data fetching hooks are available for querying data within `<Suspense />` boundaries using React 18's new concurrent rendering model. For more information see Apollo Client's [Suspense docs](./suspense/).

Let's look at an example. First, we'll create a GraphQL query named `GET_DOGS`. Remember to wrap query strings in the `gql` function to parse them into query documents:

Expand Down
64 changes: 32 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "0.13.3",
"@babel/parser": "7.23.5",
"@babel/parser": "7.23.6",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.1",
"@graphql-tools/schema": "10.0.2",
Expand All @@ -125,10 +125,10 @@
"@types/hoist-non-react-statics": "3.3.5",
"@types/jest": "29.5.11",
"@types/lodash": "4.14.202",
"@types/node": "20.10.4",
"@types/node": "20.10.5",
"@types/node-fetch": "2.6.9",
"@types/react": "18.2.43",
"@types/react-dom": "18.2.17",
"@types/react": "18.2.45",
"@types/react-dom": "18.2.18",
"@types/use-sync-external-store": "0.0.6",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
Expand All @@ -139,7 +139,7 @@
"blob-polyfill": "7.0.20220408",
"bytes": "3.1.2",
"cross-fetch": "4.0.0",
"eslint": "8.55.0",
"eslint": "8.56.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "npm:@phryneas/[email protected]",
"eslint-plugin-local-rules": "2.0.1",
Expand All @@ -159,7 +159,7 @@
"react-17": "npm:react@^17",
"react-dom": "18.2.0",
"react-dom-17": "npm:react-dom@^17",
"react-error-boundary": "4.0.11",
"react-error-boundary": "4.0.12",
"recast": "0.23.4",
"resolve": "1.22.8",
"rimraf": "5.0.5",
Expand All @@ -179,7 +179,7 @@
"typescript": "5.3.3",
"wait-for-observables": "1.0.3",
"web-streams-polyfill": "3.2.1",
"whatwg-fetch": "3.6.19"
"whatwg-fetch": "3.6.20"
},
"publishConfig": {
"access": "public"
Expand Down
Loading