mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Use proper environment mapping
This commit is contained in:
@ -41,10 +41,10 @@ const App: React.FC = () => {
|
||||
Notifications.dismissAllNotificationsAsync()
|
||||
}, [])
|
||||
useEffect(() => {
|
||||
AppState.addEventListener('change', appStateEffect)
|
||||
const appStateListener = AppState.addEventListener('change', appStateEffect)
|
||||
|
||||
return () => {
|
||||
AppState.removeEventListener('change', appStateEffect)
|
||||
appStateListener.remove()
|
||||
}
|
||||
}, [])
|
||||
|
||||
|
Reference in New Issue
Block a user