diff --git a/mobile/app/h/[hostId]/tasks.tsx b/mobile/app/h/[hostId]/tasks.tsx index 7e2108b6a77..f0c4620bf9f 100644 --- a/mobile/app/h/[hostId]/tasks.tsx +++ b/mobile/app/h/[hostId]/tasks.tsx @@ -3759,8 +3759,13 @@ export default function MobileTasksScreen() { return () => clearTimeout(timer) }, [githubKind, provider, query, taskStateHydrated]) - useEffect(() => { - return () => clearMobileTaskCopyFeedbackTimer(copiedLinkResetTimerRef) + const setTaskCopyFeedbackRootRef = useCallback((node: View | null): void => { + if (node !== null) { + return + } + // Why: copied-link feedback is screen-local; clear the pending reset when + // the Tasks screen detaches without a passive cleanup-only Effect. + clearMobileTaskCopyFeedbackTimer(copiedLinkResetTimerRef) }, []) useEffect(() => { @@ -8244,7 +8249,7 @@ export default function MobileTasksScreen() { return ( - + router.back()}>