mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-6131 get loaders from all tabs, not only visible (#3210)
Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com> Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
co-authored by
kseniaguzeeva
Daria Marutkina
parent
c85974c9f5
commit
0048ad88e4
@@ -1 +1,8 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
export const IGNORED_DEPENDENCIES = ['tslib'];
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
export interface INodePackage {
|
||||
name: string;
|
||||
version?: string;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
export const KNOWN_PEER_DEPS_MAP: Record<string, string[]> = {
|
||||
'mobx-react-lite': ['mobx', 'react-dom'],
|
||||
'@testing-library/react': ['@testing-library/dom', 'react-dom'],
|
||||
|
||||
@@ -260,8 +260,7 @@ export const TabsState = observer(function TabsState<T = Record<string, any>>({
|
||||
|
||||
useAutoLoad(
|
||||
TabsState,
|
||||
container
|
||||
?.getDisplayed(props)
|
||||
container?.tabInfoList
|
||||
.map(tab => tab.getLoader?.(context, props))
|
||||
.filter(isDefined)
|
||||
.flat() || [],
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
export * from './ACTION_LINK_OBJECT.js';
|
||||
export * from './KEY_BINDING_LINK_OBJECT.js';
|
||||
import { objectViewerNavTreeLinkPlugin } from './manifest.js';
|
||||
|
||||
Reference in New Issue
Block a user