MortyUI icon indicating copy to clipboard operation
MortyUI copied to clipboard

Data re-fetching unexpected

Open linhongye opened this issue 4 years ago • 0 comments

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...

linhongye avatar Jun 15 '21 07:06 linhongye