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 a couple more search state issues #1018

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

micahmo
Copy link
Member

@micahmo micahmo commented Jan 5, 2024

Pull Request Description

This PR fixes issues with search where certain operations ((un)subscribe/(un)favorite/etc.) could cause the search screen to reload.

All of the scenarios I found where related to changes in #984 where we reset the search state if the list of favorites has changed. This is fine if we're on the search landing page, where the favorites are at the top, but it's jarring if we're currently in a search and everything resets. The fix is to only perform the reset if we are not currently searching.

Issue Being Fixed

Issue Number: N/A

Screenshots / Recordings

Checklist

  • Did you update CHANGELOG.md?
  • Did you use localized strings where applicable?
  • Did you add semanticLabels where applicable for accessibility?

Copy link
Member

@hjiangsu hjiangsu left a comment

Choose a reason for hiding this comment

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

LGTM!

@hjiangsu hjiangsu merged commit e5b62f4 into thunder-app:develop Jan 5, 2024
1 check passed
@micahmo micahmo deleted the fix/search-state branch January 5, 2024 18:33
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