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: Type the modals correctly #5239

Merged
merged 1 commit into from
Oct 21, 2024
Merged

fix: Type the modals correctly #5239

merged 1 commit into from
Oct 21, 2024

Conversation

estib-vega
Copy link
Contributor

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

☕️ Reasoning

This pull request improves the handling of modals by updating their type definitions. This change allows for undefined types when interacting with modals, reducing the likelihood of errors during the binding process.

🧢 Changes

  • Updated the type definitions for modals to include undefined, enabling safer interactions without the risk of encountering runtime exceptions.

Issues

As seen in:

We need to type the modals correctly as possibly undefined in order to guard against calling its methods before the binding has succeeded.
Copy link

vercel bot commented Oct 21, 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 21, 2024 8:30am

Copy link
Contributor

@ndom91 ndom91 left a comment

Choose a reason for hiding this comment

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

Great that you went through and got all these 🙏

@estib-vega estib-vega merged commit ae2307b into master Oct 21, 2024
14 checks passed
@estib-vega estib-vega deleted the fix-modals-typing branch October 21, 2024 08:40
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