Dimillian / IceCubesApp

A SwiftUI Mastodon client
https://apps.apple.com/us/app/ice-cubes-for-mastodon/id6444915884
GNU Affero General Public License v3.0
4.87k stars 460 forks source link

Bug: Redundant fetching for hashtag navigation #2082

Open juanyepesp opened 1 month ago

juanyepesp commented 1 month ago

Environment:

Description

Whenever the user navigates to a certain hashtag, if they're already on the view for that hashtag they still will be redirected to the same hashtag, navigating again which allocates more memory for the fetching and can lead to memory bloating. It is also redoing the fetch every time unnecessarily.

Evidence

https://github.com/Dimillian/IceCubesApp/assets/77981728/00a12b0e-5aed-4d03-a792-41602a0fa383

I also ran this using simulator and instruments to see how it is affecting performance and memory.

image

Related Issues