MortyUI
MortyUI copied to clipboard
Data re-fetching unexpected
Switching the tab bar item will cause data fetching, and the result is that some characters (or episodes etc.) will be listed more than once.
.onAppear { data.fetchCharacters() }
I fixed this problem by adding more condition... not sure if it is elegant...