[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],
|
[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