Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

ApolloClient client's Type

$
0
0

I have a function where I pass the client as a parameter and delete the token from my app etc:

  const logOut = async (client: ApolloClient<unknown>) => {...};
return (<ApolloConsumer>      {(client: ApolloClient<unknown>) => (<SafeAreaView style={styles.safeAreaViewContainer}><View style={styles.buttonContainer}><Button                  onPress={() => logOut(client)}                  style={styles.button}                /></View></SafeAreaView>      )}</ApolloConsumer>  );};

Right now I am using unknownfor the ApolloClient type and it works. But what should I actually be using here?


Viewing all articles
Browse latest Browse all 6214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>