Browse Source

Adding conditional when opening sockets to only do it once

master
GabrielTrettel 3 years ago
parent
commit
dc97dcff6b
  1. 3
      src/App.js

3
src/App.js

@ -61,7 +61,8 @@ export default function App() {
/> />
); );
} else if (netInfo.isInternetReachable) { } else if (netInfo.isInternetReachable) {
global.formsSockets = useFiltering(global.location || global.defaultLocation);
if (global.formsSockets === undefined)
global.formsSockets = useFiltering(global.location || global.defaultLocation);
return ( return (
<AuthContext.Provider <AuthContext.Provider

Loading…
Cancel
Save