-
While debugging why I don't have access to Firestore data, I logged It seems like it first matches the value I get in I should share the whole damn code to really prove this, but it seems to me that something is wrong. It can be ES modules - not necessarily Firebase - that is to blame. In my coding, I have learned to avoid |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Using the state listeners is definitely the best pattern to follow, but currentUser should not become null unless you sign out. Out of curiosity, are you running this code on multiple tabs? Persistence events are the only things I can think of that would cause it to become null without the app doing anything. |
Beta Was this translation helpful? Give feedback.
Using the state listeners is definitely the best pattern to follow, but currentUser should not become null unless you sign out. Out of curiosity, are you running this code on multiple tabs? Persistence events are the only things I can think of that would cause it to become null without the app doing anything.