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(useAnimations): flag to enable sleep wake scenarios #1435

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

marcinsawicki
Copy link
Contributor

@marcinsawicki marcinsawicki commented Nov 19, 2024

Resolves: #{issue-number}

Description

The sleep/wake scenario in this hook, which was previously added as the fix for top bar alerts scenarios, caused incorrect state change for other components that don't use a controlled state when the user lefts the browser tab. This change adds a conditional flag to enable this feature and is currently used for the top bar notifications components only.
Also added the dedicated hook for that, as it could be improved in the future and brings more code consistency in the hooks.

Storybook

https://feature-use-animations-fix--613a8e945a5665003a05113b.chromatic.com

Checklist

Obligatory:

  • Self review (use this as your final check for proposed changes before requesting the review)
  • Add correct label
  • Assign pull request with the correct issue

@marcinsawicki marcinsawicki added the bug Something isn't working label Nov 19, 2024
@marcinsawicki marcinsawicki added this to the Cycle #10 milestone Nov 19, 2024
@marcinsawicki marcinsawicki self-assigned this Nov 19, 2024
@marcinsawicki marcinsawicki merged commit edc2faf into main Nov 20, 2024
5 checks passed
@marcinsawicki marcinsawicki deleted the feature/use-animations-fix branch November 20, 2024 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

2 participants