NTP-47546 Remove polling (#1134)

This commit is contained in:
Shri Prakash Bajpai
2025-04-16 18:32:04 +05:30
committed by GitHub
parent 7bcaa81d5f
commit d5e56d4ac0
4 changed files with 2 additions and 12 deletions

View File

@@ -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,

View File

@@ -1 +1 @@
256
257

View File

@@ -1 +1 @@
2.18.13
2.18.14

View File

@@ -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 (