Cannot read properties of null (reading 'photoURL') #1444
Replies: 5 comments
-
Using optional chaining |
Beta Was this translation helpful? Give feedback.
-
Maybe it's related, but after using the above workaround, I get this error on logout:
My useCollection has a where
So before my logout, I call
|
Beta Was this translation helpful? Give feedback.
-
I also get this, so I guess I'm doing something wrong when I try to force Vue to stop triggering my
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I've moved everything after the first redirect into the
|
Beta Was this translation helpful? Give feedback.
-
Reproduction
https://github.com/mrleblanc101/neobigben
Steps to reproduce the bug
But my logout method redirect to an empty logout page with an empty layout before login out, so the user account component is not even mounted anymore when this error happen.
Here is my logout method:
Expected behavior
There should not cause a warning in an unmounted component
Actual behavior
This cause an warning on a unmounted component
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions