From d5e56d4ac0f4632099adb7e45e0b0e4a43b448e1 Mon Sep 17 00:00:00 2001 From: Shri Prakash Bajpai Date: Wed, 16 Apr 2025 18:32:04 +0530 Subject: [PATCH] NTP-47546 Remove polling (#1134) --- ProgressBar.tsx | 1 - buildFlavor/field/buildNumber.txt | 2 +- buildFlavor/field/buildVersion.txt | 2 +- src/screens/auth/ProtectedRouter.tsx | 9 --------- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/ProgressBar.tsx b/ProgressBar.tsx index ef2a3078..eb276fc7 100644 --- a/ProgressBar.tsx +++ b/ProgressBar.tsx @@ -11,7 +11,6 @@ type ProgressBarProps = { const ProgressBar = ({ progress, height = 10, color = COLORS.TEXT.BLUE }: ProgressBarProps) => { const [animatedWidth] = useState(new Animated.Value(0)); - console.log({ progress }); useEffect(() => { Animated.timing(animatedWidth, { toValue: progress * 100, diff --git a/buildFlavor/field/buildNumber.txt b/buildFlavor/field/buildNumber.txt index ae4d10b4..a9d8b73e 100644 --- a/buildFlavor/field/buildNumber.txt +++ b/buildFlavor/field/buildNumber.txt @@ -1 +1 @@ -256 \ No newline at end of file +257 \ No newline at end of file diff --git a/buildFlavor/field/buildVersion.txt b/buildFlavor/field/buildVersion.txt index 4e05a9b1..fa906129 100644 --- a/buildFlavor/field/buildVersion.txt +++ b/buildFlavor/field/buildVersion.txt @@ -1 +1 @@ -2.18.13 \ No newline at end of file +2.18.14 \ No newline at end of file diff --git a/src/screens/auth/ProtectedRouter.tsx b/src/screens/auth/ProtectedRouter.tsx index 51952c84..3715e2b9 100644 --- a/src/screens/auth/ProtectedRouter.tsx +++ b/src/screens/auth/ProtectedRouter.tsx @@ -73,17 +73,8 @@ const ProtectedRouter = () => { // This checks for unsubmitted feedbacks in case of offline and retry submitting them interactionsHandler(); - const resyncFirebase = useResyncFirebase(); - - const stopFirebaseResyncPolling = usePolling(() => { - void resyncFirebase(); - }, getFirestoreResyncIntervalInMinutes() * MILLISECONDS_IN_A_MINUTE); - useEffect(() => { hydratePhoneDatabase(); - return () => { - stopFirebaseResyncPolling(); - }; }, []); return (