( selector: (state: SQLEditorTabsState) => T )
| 552 | * const currentTabId = useSQLEditorTabState((s) => s.currentTabId); |
| 553 | */ |
| 554 | export function useSQLEditorTabState<T>( |
| 555 | selector: (state: SQLEditorTabsState) => T |
| 556 | ): T { |
| 557 | return useSQLEditorTabsStore(selector); |
| 558 | } |
| 559 | |
| 560 | // Re-hydrate tabs whenever the active project changes. Mirrors the |
| 561 | // historical `watch(() => project.value, initProject)` side effect of |
no outgoing calls
no test coverage detected