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

Function useSQLEditorEditorState

frontend/src/react/stores/sqlEditor/editor.ts:155–159  ·  view source on GitHub ↗
(
  selector: (state: SQLEditorEditorState) => T
)

Source from the content-addressed store, hash-verified

153 * const setProject = useSQLEditorEditorState((s) => s.setProject);
154 */
155export function useSQLEditorEditorState<T>(
156 selector: (state: SQLEditorEditorState) => T
157): T {
158 return useSQLEditorEditorStore(selector);
159}
160
161/**
162 * Read SQL editor editor state outside React (in actions, effects, or

Callers 15

HistoryPaneFunction · 0.90
AdminModeButtonFunction · 0.90
ExecuteHintFunction · 0.90
SQLEditorHomePageFunction · 0.90
RequestExportButtonFunction · 0.90
GutterBarFunction · 0.90
EditorActionFunction · 0.90
AccessPaneFunction · 0.90
DatabaseChooserFunction · 0.90
WelcomeFunction · 0.90
SQLEditorRouteShellFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected