message loader

This commit is contained in:
2025-10-06 16:23:13 +02:00
parent bf0184d16c
commit 8537673144
4 changed files with 74 additions and 15 deletions
+11
View File
@@ -85,6 +85,7 @@ const Home = () => {
const [menuAnchor, setMenuAnchor] = useState(null);
const [menuProject, setMenuProject] = useState(null);
const menuAnchorRef = useRef(null);
const testLoaderTimeoutRef = useRef(null);
useEffect(() => {
setActiveStageIndex((prev) => {
@@ -218,6 +219,15 @@ const Home = () => {
stageRoute,
]);
useEffect(() => {
return () => {
if (testLoaderTimeoutRef.current) {
clearTimeout(testLoaderTimeoutRef.current);
testLoaderTimeoutRef.current = null;
}
};
}, []);
const songwriterAction = useMemo(
() => getStageAction("songwriter", null),
[]
@@ -304,6 +314,7 @@ const Home = () => {
onPress={handleStageAction}
disabled={continueDisabled}
/>
{/* <BorderGradientButton
containerStyle={{ width: Platform.OS === "web" ? 250 : "100%" }}
title={"Test Alert"}