Skip to content

Conversation

@olorin99
Copy link
Contributor

Should keep state when switching between pages on the navigation bar as well as between feed tabs.
Adds a callback to refresh widgets state when switching between accounts.

Copy link
Member

@jwr1 jwr1 left a comment

Choose a reason for hiding this comment

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

Thank you! Just a few points:

  • Going to the settings and switching accounts seemed to cause a weird state where the screen would switch back to the feed view (without pressing anything) while the navigation would still have the settings highlighted. Ideally, it just wouldn't switch at all.
  • Could you also have the state refresh on profile switch? There are a lot of default settings that could potentially change when the profile is switched, so a refresh would be needed in order to inherit those changes.

@jwr1
Copy link
Member

jwr1 commented Mar 16, 2025

Maybe have the profile state refresh in _rebuildProfile.

@olorin99
Copy link
Contributor Author

Should be fixed now. Moved the refresh trigger down a level in the widget hierarchy so "Feed", "Explore" and "Account" screens are refreshed rather than the whole app. Should prevent the screen switching on refresh.

Copy link
Member

@jwr1 jwr1 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, thanks!

@jwr1 jwr1 merged commit 8aff54a into main Mar 17, 2025
2 checks passed
@jwr1 jwr1 deleted the keep_state_navigation branch March 17, 2025 01:48
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.

3 participants