Fix missing effect cleanup (#1986)
parent
7ccbd14d5f
commit
43c8fb6f03
|
@ -36,9 +36,10 @@ function ShellInner() {
|
||||||
useAuxClick()
|
useAuxClick()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
navigator.addListener('state', () => {
|
const unsubscribe = navigator.addListener('state', () => {
|
||||||
closeAllActiveElements()
|
closeAllActiveElements()
|
||||||
})
|
})
|
||||||
|
return unsubscribe
|
||||||
}, [navigator, closeAllActiveElements])
|
}, [navigator, closeAllActiveElements])
|
||||||
|
|
||||||
const showBottomBar = isMobile && !onboardingState.isActive
|
const showBottomBar = isMobile && !onboardingState.isActive
|
||||||
|
|
Loading…
Reference in New Issue