location-menu #5

Merged
whysman merged 26 commits from location-menu into master 2025-03-30 01:56:40 +00:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 299bab4e6a - Show all commits

View File

@ -10,7 +10,7 @@ import themes from '@/assets/themes'
import log from "@/util/log"
// Prevent the splash screen from auto-hiding before asset loading is complete.
SplashScreen.preventAutoHideAsync();
void SplashScreen.preventAutoHideAsync();
export default function RootLayout() {
return (
@ -34,7 +34,7 @@ function InnerRootLayout() {
});
useEffect(() => {
if (loaded) {
SplashScreen.hideAsync();
void SplashScreen.hideAsync();
}
}, [loaded]);

View File

@ -71,7 +71,7 @@ export const UserProvider: React.FC<UserProviderProps> = ({ children }) => {
}
};
loadUserData();
void loadUserData();
}, []);
useEffect(() => {
@ -90,14 +90,14 @@ export const UserProvider: React.FC<UserProviderProps> = ({ children }) => {
}
};
saveUserData();
void saveUserData();
}, [userDataChanged]);
useEffect(() => {
const handleAppStateChange = (nextAppState: string) => {
if (appState.match(/inactive|background/) && nextAppState === "active") {
if (!isLoading) {
fetchCurrentStatus();
void fetchCurrentStatus();
} else {
log.debug("Waiting for loading to complete before fetching status...");
}