reset ptr to false when component is inactive
This commit is contained in:
committed by
Samuel Newman
parent
db9c2a1596
commit
bfa415bd86
@@ -162,6 +162,12 @@ export function NotificationFeed({
|
||||
[isFetchingNextPage],
|
||||
)
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!enabled) {
|
||||
setIsPTRing(false)
|
||||
}
|
||||
}, [enabled])
|
||||
|
||||
return (
|
||||
<View style={s.hContentRegion}>
|
||||
{error && (
|
||||
|
||||
@@ -683,6 +683,12 @@ let PostFeed = ({
|
||||
blockedOrMutedAuthors,
|
||||
])
|
||||
|
||||
useEffect(() => {
|
||||
if (enabled === false) {
|
||||
setIsPTRing(false)
|
||||
}
|
||||
}, [enabled])
|
||||
|
||||
// events
|
||||
// =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user