Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Conversation

Abhishek-kumar09
Copy link
Contributor

Closes #75
Added Circular Bar till the user is confirmed to be logged in / Not.
See the effect on refreshing the browser again and again.

@@ -11,8 +11,8 @@ import {
} from 'src/actions/accountActions';

const initialState = {
user: null,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why null was not working for you?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got it bit late but we have three states:

  1. null: The user is not logged In
  2. [Object Object] : The user is logged and have its object like uid and more
  3. Undefined: The data is yet not fully fetched from the firebase to guess if it is loogedIn/Not

{user === undefined ? (
<CircularProgress size="24px" color="inherit" />
) : (
<Typography variant="h6">Login / Sign Up</Typography>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shift it back to just Login

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On it

@KeenWarrior KeenWarrior merged commit 7b43807 into codeforcauseorg:development Sep 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Latency In Profile avatar sync
2 participants