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
-
I'm using the
urql
implementation to with graphql-sse to create a graphql client as follows:Then when try to use the
useSubscription
hook 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
true
as follows:But in my React web app when a new subscription is fired i'm getting the expected results as follows:
Why am i getting this different behaviour in react-native?.
Beta Was this translation helpful? Give feedback.
All reactions