Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase upgrade to version 9.*.* #1406

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WOLFIEEEE
Copy link

@WOLFIEEEE WOLFIEEEE commented Aug 29, 2022

Closes #1294

@vercel
Copy link

vercel bot commented Aug 29, 2022

@WOLFIEEEE is attempting to deploy a commit to the Carbon Team on Vercel.

A member of the Team first needs to authorize it.

@lgtm-com
Copy link

lgtm-com bot commented Aug 29, 2022

This pull request introduces 1 alert when merging d012c81 into 1395ed8 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@WOLFIEEEE WOLFIEEEE marked this pull request as ready for review August 29, 2022 10:54
@WOLFIEEEE
Copy link
Author

Solving issue #1294

@WOLFIEEEE
Copy link
Author

@mfix22 hey can you please review it?

Copy link
Contributor

@mfix22 mfix22 left a comment

Choose a reason for hiding this comment

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

Thanks so much for working on this @WOLFIEEEE, and so sorry for the incredible delay—I've been very busy.

Can you please run prettier against all the changes? It's difficult to assess the diff without that 🙂

Also leaving a few other nits for review, but besides that this LGTM.

Again, thanks so much!

provider.setCustomParameters({
allow_signup: 'true',
})
return login(provider)
}

export default firebase.apps.length ? firebase : null
export default FirebaseApp
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we still make this:

getApps().length ? firebase : null

so that we don't need to call getApps() in other files?

@@ -48,7 +49,7 @@ function Drawer(props) {
function LoginButton({ isVisible, toggleVisibility }) {
const user = useAuth()

if (!firebase) {
if (getApps().length === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If we make the other change suggested below, we don't need to make this change

if (firebase) {
firebase.auth().onAuthStateChanged(newUser => setState(newUser))

if(getApps().length > 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Firebase to 9.*.*
2 participants