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

Separating Network layer from UI layer in React Native graphQL

$
0
0

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 "here is firstly get undefined then a get actual dataundefined" at the very first call and after that it returns the new data.


Viewing all articles
Browse latest Browse all 6526

Trending Articles