loader hangs

This commit is contained in:
Zakhar 2026-09-05 20:41:19 +03:00
parent 68314e9d49
commit 1f4768bdcb

View File

@ -34,6 +34,16 @@ export function App() {
const dispatch = useAppDispatch();
const users = useAppSelector(state => state.family.users);
useEffect(() => {
if (showLoader) {
let timeout = setTimeout(() => { setShowLoader(false); }, 10_000);
return () => {
if (timeout) {
clearTimeout(timeout);
}
}
}
}, [showLoader, setShowLoader]);
const loadInitialState = async () => {
setShowLoader(true);