Fix missing effect cleanup (#1986)

zio/stable
dan 2023-11-24 19:22:00 +00:00 committed by GitHub
parent 7ccbd14d5f
commit 43c8fb6f03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -36,9 +36,10 @@ function ShellInner() {
useAuxClick()
useEffect(() => {
navigator.addListener('state', () => {
const unsubscribe = navigator.addListener('state', () => {
closeAllActiveElements()
})
return unsubscribe
}, [navigator, closeAllActiveElements])
const showBottomBar = isMobile && !onboardingState.isActive