fixed order, image carousel
This commit is contained in:
@@ -32,10 +32,12 @@ export default function AuthWrapper({
|
||||
useEffect(() => {
|
||||
if (isLoading) return;
|
||||
|
||||
// Only fetch guest token once on initial mount if no token exists
|
||||
if (!TokenStorage.hasAnyToken() && !isGettingGuestToken) {
|
||||
getGuestToken();
|
||||
}
|
||||
}, [isLoading, getGuestToken, isGettingGuestToken]);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [isLoading]); // Only run when isLoading changes (initial mount)
|
||||
|
||||
useEffect(() => {
|
||||
if (isLoading || isGettingGuestToken) return;
|
||||
|
||||
Reference in New Issue
Block a user