Dimillian / IceCubesApp

A SwiftUI Mastodon client

Home Page:https://apps.apple.com/us/app/ice-cubes-for-mastodon/id6444915884

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Redundant fetching for hashtag navigation

juanyepesp opened this issue · comments

Environment:

  • OS:
    iOS 14.4.1
  • IceCubesApp version:
    Version 1.10.40

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

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-19.at.18.58.51.mp4

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

image

Related Issues

  • Search that this bugs don't already exist before creating it.