Skip to content

Conversation

@alexespejo
Copy link
Collaborator

Summary

There is a race condition when you first create your AA account two user rows are created.

Local dev:
image

Test Plan

  1. Signin to AA with an email that's not in the DB

Expected: Only 1 row should appear in the db for that user and all functionality should be the same

Issues

Closes #

Copy link
Member

@KevinWu098 KevinWu098 left a comment

Choose a reason for hiding this comment

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

Because it's a race condition, I don't know how to test it absolutely — but I trust that it works.

However, I think using refs to prevent race conditions is a bit of an antipattern (i.e. why do we have a race condition in the first place?). Still, I think this is fine... maybe a TODO (@alexespejo): investigate race condition source is warranted

@alexespejo alexespejo merged commit 55edb51 into main Jan 6, 2026
2 checks passed
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.

3 participants