refactor: useStreaming

This commit is contained in:
Tristan Yang
2023-07-27 19:17:24 +08:00
parent 2133c63d1f
commit 5a0842273b
3 changed files with 17 additions and 19 deletions
+2 -2
View File
@@ -32,7 +32,6 @@ function HomePage() {
loginUser: { uid: loginUid },
guest,
ui: {
ready,
rememberedNavs: { chat: chatPath, user: userPath }
}
} = useAppSelector((store) => {
@@ -49,8 +48,9 @@ function HomePage() {
dispatch(updateRememberedNavs({ key: "chat", path: "/chat" }));
}
}, [isChatHomePath]);
console.log("ttss", success);
if (!success || !ready) {
if (!success) {
return <Loading reload={true} fullscreen={true} />;
}
const isSettingPage = pathname.startsWith("/setting");