-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ref(issue-views): Fix query count animation #83624
ref(issue-views): Fix query count animation #83624
Conversation
} else if (isError) { | ||
setCount(0); | ||
} | ||
}, [queryCount, isFetching, isError, view.query, view.unsavedChanges]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might just want a useMemoWithPrevious here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About to push a commit that does the same thing but with no hooks (and just some hackiness), detailed here
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
7793e20
to
ede7678
Compare
~Reverts the latest commit in [this PR](#83515) by adding back the use of and effect and state to achieve the desired animation behavior for issue counts.~ Implements the query count animation in a way that achieves the desired behavior without using state and effect [Relevant discussion](#82990 (comment)) This is currently in prod: https://github.com/user-attachments/assets/6c64d85c-6e39-41a5-b11e-6ceeaafa76e7 When you change the search query (not the page filters), the bubble flashes to 0 and shrinks before resizing once the response comes in.
Reverts the latest commit in this PR by adding back the use of and effect and state to achieve the desired animation behavior for issue counts.Implements the query count animation in a way that achieves the desired behavior without using state and effect
Relevant discussion
This is currently in prod:
Screen.Recording.2025-01-16.at.2.56.13.PM.mov
When you change the search query (not the page filters), the bubble flashes to 0 and shrinks before resizing once the response comes in.