/
vshmidt
/
cloudbeaver
Обзор
Документация
Войти
/
vshmidt
/
cloudbeaver
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
webapp/packages/plugin-navigation-tree/src/NodesManager/useDatabaseObjectInfo.ts
18 строк
673 B
serge-rider
dbeaver/pro#2341 Copyright update
10 янв 2024, 10:31
10 янв 2024, 10:31
904375a
Код
Авторство
О чём код?
/* * CloudBeaver - Cloud Database Manager * Copyright (C) 2020-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import { useService } from '@cloudbeaver/core-di'; import { DBObjectResource } from '@cloudbeaver/core-navigation-tree'; export function useDatabaseObjectInfo(navNodeId: string) { const dbObjectResource = useService(DBObjectResource); const dbObject = dbObjectResource.get(navNodeId); const isLoading = dbObjectResource.isLoading(navNodeId); const isLoaded = dbObjectResource.isLoaded(navNodeId); return { dbObject, isLoading, isLoaded }; }