chore: update commnents

This commit is contained in:
Tristan Yang
2022-08-01 23:25:22 +08:00
parent c12b94742a
commit bba42f2f45
6 changed files with 56 additions and 13 deletions
+3 -8
View File
@@ -35,18 +35,13 @@ export default function usePreload() {
setStreamingReady(false);
};
}, []);
useEffect(() => {
if (rehydrated) {
getUsers();
getServer();
getFavorites();
}
}, [rehydrated]);
const canStreaming = !!loginUid && rehydrated && !!token;
console.log("ttt", loginUid, rehydrated, token);
useEffect(() => {
getServer();
getUsers();
getFavorites();
setStreamingReady(canStreaming);
}, [canStreaming]);