Dimillian / IceCubesApp

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

Disable hashtag navigation for avoiding redundant fetching #2083

Closed juanyepesp closed 5 months ago

juanyepesp commented 6 months ago

I noticed that you can navigate to the same hashtag that you are currently at, which ultimately can lead to memory bloating and, if done too many times, can freeze or crash the app. To better understand the situation I am referring to, check the linked issue.

This hopefully fixes the issue, modifying the Router file inside the Env package. These modifications disable navigation from the same destination you are currently at, it can be either hashtags (case-insensitively), user profiles, etc. Hopefully I am not introducing any bugs or performance issues!