Update hooks/useAppState.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Marcos Rodriguez Vélez 2024-11-03 18:28:05 -04:00 committed by GitHub
parent b7e2cd5a70
commit e70c83ba35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ const useAppState = (): { currentAppState: AppStateStatus, previousAppState: App
return () => {
subscription.remove();
};
}, [currentAppState]);
}, []);
return { currentAppState, previousAppState: previousAppState.current };
};