Skip to content

Commit

Permalink
[apollographql#11305]update fragments doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gento-ogane committed Nov 9, 2023
1 parent dfd1f32 commit 15ae411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/data/fragments.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Starting in Apollo Client 3.7, fragments can be registered with your `InMemoryCa

Let's look at an example in React.

```js title="index.js" {7-12}
```jsx title="main.jsx" {7-12}
import { ApolloClient, gql, InMemoryCache } from "@apollo/client";
import { createFragmentRegistry } from "@apollo/client/cache";

Expand Down Expand Up @@ -143,7 +143,7 @@ function ToDoList() {
Queries can declare their own local versions of named fragments which will take precendence over ones registered via `createFragmentRegistry`, even if the local fragment is only indirectly referenced by other registered fragments. Take the following example:
```js title="index.js" {7-17}
```jsx title="main.jsx" {7-17}
import { ApolloClient, gql, InMemoryCache } from "@apollo/client";
import { createFragmentRegistry } from "@apollo/client/cache";

Expand Down

0 comments on commit 15ae411

Please sign in to comment.