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: don't re-initialize unless the user has changed #1095

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

dphilipson
Copy link
Contributor

@dphilipson dphilipson commented Oct 19, 2024

PR-Codex overview

This PR enhances the session management in manager.ts by ensuring that the local state is synchronized when the window gains focus. It checks if the user session has changed before reinitializing.

Detailed summary

  • Added a check for oldSession and newSession on window focus.
  • Only calls this.initialize() if the orgId or userId has changed between sessions.

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

Copy link

vercel bot commented Oct 19, 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 19, 2024 5:28pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2024 5:28pm

@dphilipson dphilipson merged commit c7768a8 into main Oct 19, 2024
6 checks passed
@dphilipson dphilipson deleted the dp/undefined-client-flickering branch October 19, 2024 19:41
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