mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Remove loading screen after getting all important data
This commit is contained in:
parent
96a993ba79
commit
b6e1ce938f
@ -25,17 +25,17 @@ const Startup = (obj) => {
|
|||||||
dispatch(getBlockchainData());
|
dispatch(getBlockchainData());
|
||||||
dispatch(getCurrentOrchestratorInfo());
|
dispatch(getCurrentOrchestratorInfo());
|
||||||
});
|
});
|
||||||
|
setIsLoaded(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
const refreshLogin = () => {
|
const refreshLogin = () => {
|
||||||
console.log("Logging in and getting visitor statistics...");
|
console.log("Logging in and getting visitor statistics...");
|
||||||
batch(() => {
|
batch(() => {
|
||||||
dispatch(login());
|
dispatch(login());
|
||||||
dispatch(getVisitorStats());
|
dispatch(getVisitorStats());
|
||||||
});
|
});
|
||||||
setIsLoaded(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
refreshLogin();
|
refreshLogin();
|
||||||
refreshAllZeData();
|
refreshAllZeData();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user