Skip to content

Commit

Permalink
Update movie-quotes-app-tutorial.md
Browse files Browse the repository at this point in the history
fix `Cannot read properties of undefined (reading 'reduceRight')` error according v4 as mention in `https://github.com/urql-graphql/urql/issues/3114#no-more-defaultexchanges-`
  • Loading branch information
lags authored Apr 30, 2023
1 parent 36b8834 commit b0ce371
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/getting-started/movie-quotes-app-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,12 @@ create a new URQL client:
```javascript
// src/lib/quotes-api.js

import { createClient } from '@urql/core';
import { createClient, cacheExchange, fetchExchange } from '@urql/core';

const graphqlClient = createClient({
url: import.meta.env.PUBLIC_GRAPHQL_API_ENDPOINT,
requestPolicy: "network-only"
requestPolicy: "network-only",
exchanges: [cacheExchange, fetchExchange]
});
```

Expand Down

0 comments on commit b0ce371

Please sign in to comment.