reset ptr to false when component is inactive

This commit is contained in:
vineyardbovines
2026-02-25 13:58:01 -05:00
committed by Samuel Newman
parent db9c2a1596
commit bfa415bd86
2 changed files with 12 additions and 0 deletions
@@ -162,6 +162,12 @@ export function NotificationFeed({
[isFetchingNextPage], [isFetchingNextPage],
) )
React.useEffect(() => {
if (!enabled) {
setIsPTRing(false)
}
}, [enabled])
return ( return (
<View style={s.hContentRegion}> <View style={s.hContentRegion}>
{error && ( {error && (
+6
View File
@@ -683,6 +683,12 @@ let PostFeed = ({
blockedOrMutedAuthors, blockedOrMutedAuthors,
]) ])
useEffect(() => {
if (enabled === false) {
setIsPTRing(false)
}
}, [enabled])
// events // events
// = // =