Skip to content

Convert ToastContainer to Script Setup to fix type errors #55

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

Merged
merged 6 commits into from
Mar 2, 2025

Conversation

ZachHaber
Copy link
Contributor

@ZachHaber ZachHaber commented Feb 27, 2025

πŸ”— Linked issue

#54

❓ Type of change

  • 🧹 Updates to the build process or auxiliary tools and libraries
  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸš€ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

As mentioned in the TS fixes PR (#53), this fixes the remaining type errors I was seeing in ToastContainer by converting it to using script setup. Conveniently, the jsx PR doesn't touch ToastContainer, so there will be no conflicts.

This has been updated to add in the fix for #54 - preventing duplication of queued toasts. It also fixes an off-by-one bug which prevented the number of toasts from reaching maxToasts until queued toasts were released.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

nandi95
nandi95 previously approved these changes Mar 1, 2025
@nandi95 nandi95 merged commit 3abd49a into nandi95:master Mar 2, 2025
4 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.

2 participants