refine keyExtractor to avoid key duplication

This commit is contained in:
Nouman Tahir 2023-09-14 12:05:57 +05:00
parent 9ebb960b0d
commit 4869ebfcdc

View File

@ -172,7 +172,7 @@ const CommentsView = ({
contentContainerStyle={{ padding: 0 }}
data={comments}
renderItem={_renderItem}
keyExtractor={(item) => get(item, 'permlink')}
keyExtractor={(item) => item.author + item.permlink}
ListEmptyComponent={_renderEmptyContent()}
ListHeaderComponent={postContentView}
overScrollMode="never"