Something went wrong. Try again.
Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
Something went wrong. Try again.
1234567891011121314151617181920212223242526import React from 'react';import { Client, Provider, fetchExchange } from 'urql';import { persistedExchange } from '@urql/exchange-persisted';
import LocationsList from './LocationsList';
const client = new Client({ url: 'https://trygql.formidable.dev/graphql/apq-weather', exchanges: [ persistedExchange({ preferGetForPersistedQueries: true, }), fetchExchange, ],});
function App() { return ( <Provider value={client}> <LocationsList /> </Provider> );}
export default App;