Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

rm bad ref in render usage (#8024)

authored by

Samuel Newman and committed by
GitHub
57d91373 6d8124c7

+2 -14
+2 -14
src/components/dms/MessageItem.tsx
··· 1 - import React, {useCallback, useMemo, useRef} from 'react' 2 - import { 3 - GestureResponderEvent, 4 - LayoutAnimation, 5 - StyleProp, 6 - TextStyle, 7 - View, 8 - } from 'react-native' 1 + import React, {useCallback, useMemo} from 'react' 2 + import {GestureResponderEvent, StyleProp, TextStyle, View} from 'react-native' 9 3 import { 10 4 AppBskyEmbedRecord, 11 5 ChatBskyConvoDefs, ··· 87 81 88 82 return true 89 83 }, [message, nextMessage, isPending]) 90 - 91 - const lastInGroupRef = useRef(isLastInGroup) 92 - if (lastInGroupRef.current !== isLastInGroup) { 93 - LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut) 94 - lastInGroupRef.current = isLastInGroup 95 - } 96 84 97 85 const pendingColor = t.palette.primary_200 98 86