-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bind Connection using usePusher | React native #19
Comments
I also try to use
but it's not working too. |
Hey, first thing I notice is that client is missing from your dependancy array. On the first render, client will not be defined. Since client is stored in state though, when it becomes available it'll re-trigger the effect: use-pusher/src/core/PusherProvider.tsx Line 40 in ea3b549
If it still doesn't work, please provide a codesandbox and I can have a look! |
@mayteio you are right, i wait for the "client" and is working. But in react native it's not working. |
That's great. Have you checked the rn example? https://github.com/mayteio/use-pusher/tree/master/examples/native-use-pusher-example |
@mayteio yes I do, but it's not working, I try with I wrap the Provider with the navigation.. all the hooks work but in the case of getting the status of the connection, its not working
|
Hi @mayteio , I found the solution, apparently passing the provider like this ist not working...
But passing directly to the NavigationContainer it's working:
just leaving here for someone else :) |
Hey @juandl, That's odd! Glad you could figure it out, cheers. |
Hi, I'm trying to get the status of the connection. using
but it's not working, any way to do this?
The text was updated successfully, but these errors were encountered: