|
|
@ -50,7 +50,8 @@ export default function App() { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
useEffect(async () => { |
|
|
|
useEffect(() => { |
|
|
|
async function getNetInfo() { |
|
|
|
if (netInfo.isInternetReachable) { |
|
|
|
const cachedForms = await cache.get("sendforms"); |
|
|
|
if (!isReconnected) { |
|
|
@ -81,6 +82,8 @@ export default function App() { |
|
|
|
notImplemented(colors.blueWarning, "Sem conexão à internet", null, false); |
|
|
|
setIsReconnected(false); |
|
|
|
} |
|
|
|
} |
|
|
|
getNetInfo() |
|
|
|
}, [netInfo.isInternetReachable]); |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|