Closed emadbaqeri closed 2 years ago
import { enableFlipperApolloDevtools } from "react-native-flipper-apollo-devtools";
export const client = new ApolloClient({
cache,
link: from([errorLink, authLink, retryLink, splitLink]),
assumeImmutableResults: true,
connectToDevTools: true,
defaultOptions: {
watchQuery: {
fetchPolicy: 'cache-and-network',
errorPolicy: 'none',
},
query: {
fetchPolicy: 'cache-first',
errorPolicy: 'all',
},
},
});
enableFlipperApolloDevtools(client);
I'm trying to use this plugin in my code base like this:
but typescript blames about it:
What is the simple way of using this plugin? Any Ideas would be appreciated ;)