title: React Native authorization with Apollo: create client with token. Cannot set token to header
body: <pre><code>let [loading, setLoading] = useState(true);
  let client = new ApolloClient({
      uri: 'https://39990dea.ngrok.io/graphql',
  });
  
  let init = async () =&gt; {
      let token = await AsyncStorage.getItem('token');
      if (!!token) {
          store.dispatch(userLoaded(token));
          client = new ApolloClient({
              request: (operation) =&gt; {
                  operation.setContext({
                      headers: {
                          authorization: token ? token : '',
                      },
                  });
              },
          });
          console.warn('user with token created');
          console.warn(token);
          console.warn('token is taken');
      }
      setLoading(false);
  };
  useEffect(init, []);
  </code></pre>
  
  <p>There i am creating apollo client. Then I set header to request with token if there is a token in AsyncStorage.</p>
  
  <pre><code>return (
  &lt;ApolloProvider client={client}&gt;
      &lt;Provider store={store}&gt;
          &lt;AppNavigator/&gt;
      &lt;/Provider&gt;
  &lt;/ApolloProvider&gt;
  </code></pre>
  
  <p>);</p>
  
  <p>But when i make request, Graphql error: notoken shows up. Is there anything I am doing wrong?</p>