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

fix: persist login state across refreshes #1020

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

moldy530
Copy link
Collaborator

@moldy530 moldy530 commented Oct 7, 2024

This PR

I had to move a number of things around to enable the cookie storage on the app so that's most of this PR. That was actually the only thing missing to remove the loading flicker. I also refactored the Mint Card slightly because that was also causing a flicker. Now it always renders the mint card if you're logged in, just disables the button until minting is ready.


PR-Codex overview

This PR focuses on updating the configuration and functionality of the AuthCardHeader, Providers, and various components to enhance the authentication process and state management. It also upgrades the versioning of the configuration and related components.

Detailed summary

  • Updated version from 8 to 9 in multiple files.
  • Enhanced AuthCardHeader to accept new props.
  • Modified Providers to include initialState prop.
  • Integrated alchemyConfig and initialState into RootLayout.
  • Refactored MintCard to handle loading states better.
  • Adjusted imports and exports for better modularity.
  • Simplified AuthCardWrapper by removing unnecessary client checks.
  • Added cookie handling in RootLayout for state initialization.
  • Updated configuration structure in config.tsx.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Oct 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 7:42pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 7:42pm

showEmail: true,
showExternalWallets: false,
showPasskey: true,
addPasskey: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is false right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

or will be...

Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess fine to do it in another PR!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah yea I think that's what Iyk and Rob are gonna tackle changing

@moldy530 moldy530 merged commit 73214a0 into main Oct 8, 2024
2 of 4 checks passed
@moldy530 moldy530 deleted the moldy/fix-flicker branch October 8, 2024 19:31
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.

2 participants