title: Separating Network layer from UI layer in React Native graphQL
body: <p>I am using GraphQl with react native,when I use the queries on the same file ie. UI file then the queries are working perfectly but if I separate the queries and call them from different file (separating the network layer) then it doesn't work the way as expected like it gives &quot;<a href="https://i.stack.imgur.com/vmiLo.png" rel="nofollow noreferrer">here is firstly get undefined then a get actual data</a>undefined&quot; at the very first call and after that it returns the new data.</p>