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

Sonner.Promise and other Fixes #1

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Sonner.Promise and other Fixes #1

wants to merge 6 commits into from

Conversation

Lachee
Copy link

@Lachee Lachee commented Jun 11, 2024

I have added support for Sonner.Promise, it will dynamically update the content based on the result of promises.

I have also fixed up a variety of issues i was having, such as broken styling in the minified code, spammed toasts disappearing, and bad maths causing things to be inverted.

  • Updated styling to properly shrink in background
  • Added opts to functions so users can define durations
  • Added support for infinite durations
  • Added promise support
  • Made render return a new toast object with utility functions to allow dynamic data updates
  • Moved to webpack and removed uglifier as its minified code was causing firefox to stop rendering the scale.

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.

1 participant