mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #35350 from overleaf/mj-up-timeouts
[web] Increase reconnection window in editor GitOrigin-RevId: e6ffb4ecda170eb171455a9c692900ce71309c88
This commit is contained in:
committed by
Copybot
parent
6f8ecc7678
commit
843aae01c9
@@ -12,8 +12,14 @@ import { useEditorManagerContext } from '@/features/ide-react/context/editor-man
|
||||
import { useIdeReactContext } from '@/features/ide-react/context/ide-react-context'
|
||||
import { PermissionsLevel } from '@/features/ide-react/types/permissions'
|
||||
import useEventListener from '@/shared/hooks/use-event-listener'
|
||||
import { isSplitTestEnabled } from '@/utils/splitTestUtils'
|
||||
|
||||
const MAX_UNSAVED_SECONDS = 30 // lock the editor after this time if unsaved
|
||||
const intermittentConnectionImprovementsEnabled = isSplitTestEnabled(
|
||||
'intermittent-connection-improvements'
|
||||
)
|
||||
|
||||
// lock the editor after this time if unsaved
|
||||
const MAX_UNSAVED_SECONDS = intermittentConnectionImprovementsEnabled ? 600 : 30
|
||||
|
||||
type UnsavedDocsContextValue = {
|
||||
unsavedDocs: Map<string, number>
|
||||
|
||||
Reference in New Issue
Block a user