MCPcopy Create free account
hub / github.com/bytebase/bytebase / useCurrentSQLEditorTab

Function useCurrentSQLEditorTab

frontend/src/react/stores/sqlEditor/tab.ts:592–593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

590 * mutations of the active tab propagate through React.
591 */
592export const useCurrentSQLEditorTab = (): SQLEditorTab | undefined =>
593 useSQLEditorTabsStore((s) => s.tabsById.get(s.currentTabId));
594
595/**
596 * Live ordered list of open tabs.

Callers 12

SQLEditorHomePageFunction · 0.90
EditorActionFunction · 0.90
DatabaseChooserFunction · 0.90
BatchQuerySelectFunction · 0.90
ResultPanelFunction · 0.90
PanelsFunction · 0.90
StandardPanelFunction · 0.90
ConnectionPaneInnerFunction · 0.90
useWorksheetAndTabFunction · 0.90
ChatPanelFunction · 0.90
AIContextProviderFunction · 0.90
ConversationListFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected