this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Optimize notifications rendering (#1957)

authored by

dan and committed by
GitHub
7c51a393 d1c14940

+5 -3
+5 -3
src/view/com/notifications/FeedItem.tsx
··· 1 - import React, {useMemo, useState, useEffect} from 'react' 1 + import React, {memo, useMemo, useState, useEffect} from 'react' 2 2 import { 3 3 Animated, 4 4 TouchableOpacity, ··· 56 56 moderation: ProfileModeration 57 57 } 58 58 59 - export function FeedItem({ 59 + let FeedItem = ({ 60 60 item, 61 61 dataUpdatedAt, 62 62 moderationOpts, ··· 64 64 item: FeedNotification 65 65 dataUpdatedAt: number 66 66 moderationOpts: ModerationOpts 67 - }) { 67 + }): React.ReactNode => { 68 68 const pal = usePalette('default') 69 69 const [isAuthorsExpanded, setAuthorsExpanded] = useState<boolean>(false) 70 70 const itemHref = useMemo(() => { ··· 262 262 </Link> 263 263 ) 264 264 } 265 + FeedItem = memo(FeedItem) 266 + export {FeedItem} 265 267 266 268 function ExpandListPressable({ 267 269 hasMultipleAuthors,