Fix: correctly set visible on screens

zio/stable
Paul Frazee 2022-11-17 13:15:04 -06:00
parent 8b584c8c09
commit c6b137a153
2 changed files with 1 additions and 2 deletions

View File

@ -45,7 +45,6 @@ export const Home = observer(function Home({
let aborted = false let aborted = false
const pollInterval = setInterval(() => doPoll(), 15e3) const pollInterval = setInterval(() => doPoll(), 15e3)
if (!visible) { if (!visible) {
console.log('hit')
return return
} }
if (hasSetup) { if (hasSetup) {

View File

@ -256,7 +256,7 @@ export const MobileShell: React.FC = observer(() => {
]}> ]}>
<Com <Com
params={params} params={params}
visible={true} visible={current}
scrollElRef={current ? scrollElRef : undefined} scrollElRef={current ? scrollElRef : undefined}
/> />
</Animated.View> </Animated.View>