@opengeni/react-native 4.3.3-canary.39705388692001 → 4.3.3-canary.39745621161001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/timeline/index.js
CHANGED
|
@@ -6585,6 +6585,8 @@ function StuckCard({
|
|
|
6585
6585
|
const t = useOpenGeniText();
|
|
6586
6586
|
const start = useSessionStart({ session, onSessionChanged });
|
|
6587
6587
|
const [failed, setFailed] = useState(false);
|
|
6588
|
+
const [rechecking, setRechecking] = useState(false);
|
|
6589
|
+
const recheckPending = useRef(false);
|
|
6588
6590
|
const [moving, setMoving] = useState(null);
|
|
6589
6591
|
const [moveError, setMoveError] = useState(null);
|
|
6590
6592
|
const c = theme.colors;
|
|
@@ -6666,12 +6668,18 @@ function StuckCard({
|
|
|
6666
6668
|
{
|
|
6667
6669
|
label: m.stuckRetry,
|
|
6668
6670
|
variant: "primary",
|
|
6669
|
-
busy,
|
|
6670
|
-
disabled: busy,
|
|
6671
|
+
busy: busy || rechecking,
|
|
6672
|
+
disabled: busy || rechecking,
|
|
6671
6673
|
style: { alignSelf: "flex-start" },
|
|
6672
6674
|
onPress: () => {
|
|
6675
|
+
if (recheckPending.current) return;
|
|
6676
|
+
recheckPending.current = true;
|
|
6677
|
+
setRechecking(true);
|
|
6673
6678
|
setFailed(false);
|
|
6674
|
-
start.recheck().catch(() => setFailed(true))
|
|
6679
|
+
start.recheck().catch(() => setFailed(true)).finally(() => {
|
|
6680
|
+
recheckPending.current = false;
|
|
6681
|
+
setRechecking(false);
|
|
6682
|
+
});
|
|
6675
6683
|
}
|
|
6676
6684
|
}
|
|
6677
6685
|
)
|