Replies: 2 comments 4 replies
-
Hi Jacob, It would be great if you add a firebase example. I've been working on the websocket and event source examples. What I'll do, I'll split the card into multiple issues, so that you can grab whatever suits you. Regarding your firebase question. Do you need to persist any data in the react query cache? Or is this unrelated? Do you just want to listen to the firebase auth change and update some kind of state? |
Beta Was this translation helpful? Give feedback.
0 replies
-
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.
-
Hey I'd be happy to do some work on this card, I've already had a go using the library with firebase for example.
On a separate note, and maybe this isn't the right place to ask about this, i'd be interested in whether you'd have any suggestions -
i'm trying to write a hook for firebase similar to
useSubscription
, without use ofrxjs
or this library (the maintainers of that project don't want to add in more dependencies). In that situation i only have access to firebase's callbacks, e.g:I thought to do something similar, and store the
unsubscribe
methods in thequeryClient
. Do you think it's necessary to set up a stream, like you do here withrxjs
?(Apologies if it's not so relevant to
react-query-subscription
)Beta Was this translation helpful? Give feedback.
All reactions