invertase / invertase/tanstack-query-firebase

useAuthUser works only for the first execution in react native

Open
#88 2 comments 0 reactions 0 assignees View on GitHub
react-query-firebase
Dominant language
TypeScript
Stars
462
Forks
69
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.