NTP-47546 Remove polling (#1134)
This commit is contained in:
committed by
GitHub
parent
7bcaa81d5f
commit
d5e56d4ac0
@@ -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,
|
||||
|
||||
@@ -1 +1 @@
|
||||
256
|
||||
257
|
||||
@@ -1 +1 @@
|
||||
2.18.13
|
||||
2.18.14
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user