GraphQL SSE React Native Subscription is not working. #68
Unanswered
CrispenGari
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
This seems to be a specific urql / react-native question. As I have no experience with either, I cannot be of help here. Please consider asking the respective projects. Sorry. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the
urqlimplementation to with graphql-sse to create a graphql client as follows:Then when try to use the
useSubscriptionhook as follows to listen to new incoming subscriptions in my component as follows:In my logs in a react-native application i'm only getting the loading state to
trueas follows:{ "fetching": true }But in my React web app when a new subscription is fired i'm getting the expected results as follows:
{ "data": { "onNewFriendRequest": null }, "fetching": false }Why am i getting this different behaviour in react-native?.
Beta Was this translation helpful? Give feedback.
All reactions