[APP-1876] Fix pull-to-refresh getting stuck on tab switch (#9951)
This commit is contained in:
@@ -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