invertase / invertase/tanstack-query-firebase

Enabled option error

Open
#90 1 comment 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

**Please help me with a problem**

_Description of the problem:_

Everything works fine until I refresh the browser page.
I expect the request to be executed after the userId is true
But **subscribe** seems to ignore the **enabled** option

That is, the userId does not have time to form, as it makes a **request**?

What am I doing wrong?

Writing **user.uid** to the global state
![image](https://user-images.githubusercontent.com/67557922/236257703-251f8210-9f39-41b2-adf8-6aae0f3cd48f.png)

Getting a collection by **userId** from the global state
![image](https://user-images.githubusercontent.com/67557922/236257286-8f362a80-3a3b-46ab-b860-b2e9e537b779.png)

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.