()
| 629 | * `true` when the current tab has no valid database connection. |
| 630 | */ |
| 631 | export const useIsDisconnected = (): boolean => |
| 632 | useSQLEditorTabsStore((s) => { |
| 633 | const tab = s.tabsById.get(s.currentTabId); |
| 634 | if (!tab) return true; |
| 635 | return !isConnectedSQLEditorTab(tab); |
| 636 | }); |
| 637 | |
| 638 | /** |
| 639 | * Batch query mode flags. Derived from current tab + feature gates. |
no test coverage detected