title: creatHttpLink from asyncStorage, Apollo, React Native
body: <p>&quot;react-apollo&quot;: &quot;3.1.5&quot;,</p>
  <p>&quot;react-native&quot;: &quot;https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz&quot;</p>
  <p>&quot;expo&quot;: &quot;38.0.0&quot;</p>
  <p>I am trying to get my url from local asyncStorage (mainly for the reason than my url is picked from two urls after login and assigned to asyncStorage).
  Here is what I already tried but all the time I am getting undefined data</p>
  <pre><code>const asyncHttpLink = setContext(async (_, {headers, ...context}) =&gt; {
    const url = await getUrlFromAsyncStorage();
    return createHttpLink({
      uri: url ? url : '',
      ...context,
    });
  });
  </code></pre>
  <p>then I assign it into my Appolo</p>
  <pre><code>const client = new ApolloClient({
    ... other property as cache, type etc. ...
    link: ApolloLink.from([
      ... other links ...
      asyncHttpLink,
    ]),
  });
  </code></pre>
  <p>on response I get all the properties except data which are always undefined</p>
  <pre><code>[
    &quot;variables&quot;,
    &quot;refetch&quot;,
    ... other 7 ...,
    &quot;error&quot;,
    &quot;called&quot;,
    &quot;data&quot;, &lt;== always undefined
    &quot;client&quot;,
  ]
  </code></pre>
  <p>but if I use standard createHttpLink, all starts working just fine</p>
  <pre><code>const httpLink = createHttpLink({
    uri: desiredUrl,
  });
  </code></pre>
  <p>anybody has been chasing the same situation?</p>