Upon logging in, or registering with a user, sometimes I'm getting the error Can't read property photoURL of undefined in the SignedInMenu.jsx component.
I can't reproduce the bug every time though, it happens sometimes and sometimes it doesn't.
It may be due to the fact that SignedInMenu mounts before this
profileRef.onSnapshot((snapshot) => {
console.log('Reaching here ?')
dispatch(listenToCurrentUserProfile(dataFromSnapshot(snapshot)))
dispatch({ type: APP_LOADED })
})
code in authActions.js gets executed. Also, I don't see the above console.log() statement being executed in the case of the occurrence of bug.
Upon logging in, or registering with a user, sometimes I'm getting the error Can't read property photoURL of undefined in the SignedInMenu.jsx component.
I can't reproduce the bug every time though, it happens sometimes and sometimes it doesn't.
It may be due to the fact that SignedInMenu mounts before this
code in authActions.js gets executed. Also, I don't see the above console.log() statement being executed in the case of the occurrence of bug.