We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a26b06 commit 24e19a8Copy full SHA for 24e19a8
apps/sim/app/workspace/[workspaceId]/w/components/providers/workspace-permissions-provider.tsx
@@ -87,8 +87,10 @@ export function WorkspacePermissionsProvider({ children }: WorkspacePermissionsP
87
}
88
// If we were previously connected and this is a reconnection, stay offline (user must refresh)
89
} else if (hasBeenConnected) {
90
- // Only enter offline mode if we were previously connected and now disconnected
91
- setIsOfflineMode(true)
+ const timeoutId = setTimeout(() => {
+ setIsOfflineMode(true)
92
+ }, 6000)
93
+ return () => clearTimeout(timeoutId)
94
95
// If not connected and never been connected, stay in initial state (not offline mode)
96
}, [isConnected, hasBeenConnected])
0 commit comments