Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

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

Open
vitalyster opened this issue Aug 26, 2023 · 0 comments

Comments

@vitalyster
Copy link
Contributor

vitalyster commented Aug 26, 2023

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

@vitalyster vitalyster changed the title Timeline stops refreshing after some time ("Encountered two children with the same key") Timeline stops updating on scroll after some time ("Encountered two children with the same key") Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant