tuist/projects/cloud/app/frontend/networking/GraphqlProvider.tsx

22 lines
432 B
TypeScript

import React from 'react';
import {
ApolloClient,
InMemoryCache,
ApolloProvider,
useQuery,
gql,
} from '@apollo/client';
import graphqlClient from './graphqlClient';
interface GraphqlProviderProps {
children?: React.ReactNode;
}
const GraphqlProvider = ({ children }: GraphqlProviderProps) => {
return (
<ApolloProvider client={graphqlClient}>{children}</ApolloProvider>
);
};
export default GraphqlProvider;