🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix: slove when logout always show loading (#10284)
Shinji-Lid91fb73f68d4
diff --git a/src/app/[variants]/desktopRouter.config.tsx b/src/app/[variants]/desktopRouter.config.tsxindex 18fcbf45abf..fa45d5e3a38 100644--- a/src/app/[variants]/desktopRouter.config.tsx+++ b/src/app/[variants]/desktopRouter.config.tsx@@ -36,27 +36,9 @@ const RootLayout = (props: { locale: Locales }) => {);};-// Hydration gate loader - waits for client state to be ready before rendering+// Hydration gate loader -always return true to bypass hydration gateconst hydrationGateLoader: LoaderFunction = () => {- const { isAppHydrated } = useGlobalStore.getState();-- // 如果状态已经就绪,直接放行- if (isAppHydrated) {- return null;- }-- // 否则,返回一个 Promise,"暂停" 渲染- return new Promise((resolve) => {- console.log('[HydrationGate] Waiting for client state...');- // 订阅 useGlobalStore 的变化- const unsubscribe = useGlobalStore.subscribe((state) => {- if (state.isAppHydrated) {- console.log('[HydrationGate] Client state ready. Gate opened!');- unsubscribe(); // 清理订阅- resolve(null); // Promise 完成,门卫放行- }- });- });+ return true};// Create desktop router configurationdiff --git a/src/app/[variants]/mobileRouter.config.tsx b/src/app/[variants]/mobileRouter.config.tsxindex ef7c5b9d9f3..cb7f1f6d2d7 100644--- a/src/app/[variants]/mobileRouter.config.tsx+++ b/src/app/[variants]/mobileRouter.config.tsx@@ -34,27 +34,9 @@ const RootLayout = (props: { locale: Locales }) => (</>);-// Hydration gate loader - waits for client state to be ready before rendering+// Hydration gate loader -always return true to bypass hydration gateconst hydrationGateLoader: LoaderFunction = () => {- const { isAppHydrated } = useGlobalStore.getState();-- // 如果状态已经就绪,直接放行- if (isAppHydrated) {- return null;- }-- // 否则,返回一个 Promise,"暂停" 渲染- return new Promise((resolve) => {- console.log('[HydrationGate] Waiting for client state...');- // 订阅 useGlobalStore 的变化- const unsubscribe = useGlobalStore.subscribe((state) => {- if (state.isAppHydrated) {- console.log('[HydrationGate] Client state ready. Gate opened!');- unsubscribe(); // 清理订阅- resolve(null); // Promise 完成,门卫放行- }- });- });+ return true};// Create mobile router configuration