tooot-app / app

https://tooot.app
GNU General Public License v3.0
228 stars 21 forks source link

Timeline stops updating on scroll after some time ("Encountered two children with the same key") #759

Open vitalyster opened 10 months ago

vitalyster commented 10 months ago

This happens mostly on "trending" tab when scrolling:

LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "20"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "40"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "60"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "80"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "100"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "120"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "140"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "160"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "180"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "200"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "220"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "240"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "260"}
 LOG   Instance  mastodon.social get -> /trends/statuses ->  {"limit": 20, "offset": "280"}
 ERROR  Warning: Encountered two children with the same key, `.$110948874919772261`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
    in RCTScrollContentView (created by ScrollView)
    in RCTScrollView (created by ScrollView)
    in ScrollView (created by ScrollView)
    in ScrollView (created by VirtualizedList)
    in VirtualizedListContextProvider (created by VirtualizedList)
    in VirtualizedList (created by FlatList)
    in FlatList (created by AnimatedComponent(FlatList))
    in AnimatedComponent(FlatList)
    in Unknown (created by Timeline)

When this happens next toots in timeline started to duplicate previous toots