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: Mitigate Prompt modal race condition #5326

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Conversation

estib-vega
Copy link
Contributor

@estib-vega estib-vega commented Oct 28, 2024

☕️ Reasoning

This pull request addresses a race condition issue related to the Prompt modal.

🧢 Changes

  • Added checks and applied asynchronous handling for git prompts.

Issue

As seen in #5258

Stacking

Depends on: #5325

Make the modal closing function a promise as it's done asynchronously.
Add another optional callback that's called only in the case when clicking outside the modal.
Add some checks and await the handling of git prompts.
Copy link

vercel bot commented Oct 28, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
gitbutler-web ⬜️ Skipped (Inspect) Oct 28, 2024 10:34am

@estib-vega estib-vega merged commit 183a026 into master Oct 28, 2024
15 checks passed
@estib-vega estib-vega deleted the fix-prompt-modal branch October 28, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants