You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a react native project with react: 18.1.0 , react-native: 0.70.5, react-query: 3.39.3,
and @react-query-firebase/auth: 1.0.0-dev.2.
When I try to use useAuthUser as specified in the docs : const user = useAuthUser(['user'], auth); to get the user object, everything seems to work fine the first time around, but when I try to use the same code to have the user object in a different component, the query remains in loading state indefinitely.
The text was updated successfully, but these errors were encountered:
Also seemed to have issues with useAuthUser in production. I'm currently using a simple hook with unsubscribe functionality. Seems to be working nicely 🙂
I'm working on a react native project with
react: 18.1.0
,react-native: 0.70.5
,react-query: 3.39.3
,and
@react-query-firebase/auth: 1.0.0-dev.2
.When I try to use useAuthUser as specified in the docs :
const user = useAuthUser(['user'], auth);
to get the user object, everything seems to work fine the first time around, but when I try to use the same code to have the user object in a different component, the query remains inloading
state indefinitely.The text was updated successfully, but these errors were encountered: