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],
|
[isFetchingNextPage],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (!enabled) {
|
||||||
|
setIsPTRing(false)
|
||||||
|
}
|
||||||
|
}, [enabled])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={s.hContentRegion}>
|
<View style={s.hContentRegion}>
|
||||||
{error && (
|
{error && (
|
||||||
|
|||||||
@@ -683,6 +683,12 @@ let PostFeed = ({
|
|||||||
blockedOrMutedAuthors,
|
blockedOrMutedAuthors,
|
||||||
])
|
])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (enabled === false) {
|
||||||
|
setIsPTRing(false)
|
||||||
|
}
|
||||||
|
}, [enabled])
|
||||||
|
|
||||||
// events
|
// events
|
||||||
// =
|
// =
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user