Error "Reduce" when signing out
Closed this issue · 4 comments
Gehrkej commented
solderq35 commented
Jake's explanation of triggering the error (more details):
- open app on two devices, one of them logged in as coach, one as player
- coach removes the player
- player automatically logs in again (from login persistence in context/Auth.js) and gets error shown (profile page > settings)
- unclear what happens if logged out user tries to log in normally (type in username and password)
possible solutions:
- some sort of try catch on profile page to log out undefined user?
- check in context/Auth.js to log out user that is undefined (try to directly modify the auto-login feature / persistent login)
- probably have to check caching logic for useUserInfo hook
Gehrkej commented
Not sure if this is still happening as I was able to sign out without getting this error message but instead recieved a " ERROR [TypeError: Cannot read property 'uid' of null]" error... Will try to include more information as I am testing #190 and signing out of accounts frequently
Gehrkej commented
was able to reproduce this error actually upon testing.
- Create a new user.
- Go to profile tab
- click settings icon
- Click signout
solderq35 commented
Should be fixed by PR linked above, closing as completed