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(notify): reset circle animation on notification re-trigger with id #559

Merged
merged 3 commits into from
Apr 27, 2024

Conversation

RrybaN
Copy link
Contributor

@RrybaN RrybaN commented Apr 26, 2024

This pull request is a fix for issue #554

Fixed

Reset circle animation when re-triggering a notification with ID.

Solution

Assigning unique keys to each RingProgress instance allows React to properly manage its state and trigger re-renders when necessary.

Preview

notify

@RrybaN RrybaN changed the title fix(notify): prevent duration not showing in notifications with id fix(notify): reset circle animation on notification re-trigger with id Apr 27, 2024
Copy link
Member

@LukeWasTakenn LukeWasTakenn left a comment

Choose a reason for hiding this comment

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

Looks good, I've pushed a commit that changes the key counter to be a ref instead of state to avoid unnecessary rerenders.

@LukeWasTakenn LukeWasTakenn merged commit 8bb3b5a into overextended:master Apr 27, 2024
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