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
That's because there's two query identifiers declared there, the one imported and the const variable where you stored the result of useFirestoreQuery. It will try to use the const query = ... one instead of the import, so doing query(...) wouldn't work. You also get the error because it tried to use the variable before it was declared (and initialized). Renaming one of them should fix it. I think that's an oversight on the docs tho.
I just tried the example at: https://react-query-firebase.invertase.dev/firestore/querying-collections
and got this error above.
If I move the query before the function it will work, but then I am not able to pass parameters to the querys where clause.
I am using React 16.14.0.
The text was updated successfully, but these errors were encountered: