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 non-home screen soft resetting when feed is selected from right nav #6158

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

gpp-0
Copy link
Contributor

@gpp-0 gpp-0 commented Nov 8, 2024

On desktop, when the current feed is selected from the right nav, that performs a soft reset of the current screen. This behavior is expected when the current screen is Home, but it's unnecessary on every other screen since the app will immediately navigate to Home anyway.
In fact, this soft resetting manifested as a bug where selecting the "current" feed (the feed that was last accessed) while on the Search screen will fail to navigate to Home, since soft resetting the Search screen involves a navigation, which cancels the navigation to Home.

I just made it so that it only soft resets on Home, since that's the only place where we want that, I think

Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

makes sense to me

@gaearon gaearon merged commit 6b1ffff into bluesky-social:main Nov 8, 2024
6 checks passed
@gpp-0 gpp-0 deleted the fix-right-nav-feed-selection branch November 8, 2024 18:17
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