fix purity errors

This commit is contained in:
Samuel Newman
2025-10-08 17:08:09 +03:00
parent a25ce54618
commit 461f56a342
7 changed files with 23 additions and 14 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import {useMemo} from 'react'
import {useState} from 'react'
import {
type DimensionValue,
type StyleProp,
@@ -283,7 +283,7 @@ export function ChatListItemLoadingPlaceholder({
style?: StyleProp<ViewStyle>
}) {
const t = useTheme_NEW()
const random = useMemo(() => Math.random(), [])
const [random] = useState(() => Math.random())
return (
<View style={[a.flex_row, a.gap_md, a.px_lg, a.mt_lg, t.atoms.bg, style]}>
<LoadingPlaceholder width={52} height={52} style={a.rounded_full} />