Skip to content

Commit

Permalink
CB-5085 add lazy import
Browse files Browse the repository at this point in the history
  • Loading branch information
devnaumov committed May 14, 2024
1 parent 7faed4f commit d8acc85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions webapp/packages/core-blocks/src/ClickableLoader.ts
Original file line number Diff line number Diff line change
@@ -0,0 +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.
*/
import { importLazyComponent } from './importLazyComponent';

export const Clickable = importLazyComponent(() => import('./Clickable').then(m => m.Clickable));
2 changes: 1 addition & 1 deletion webapp/packages/core-blocks/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,4 @@ export * from './useMergeRefs';
export * from './usePasswordValidation';
export * from './manifest';
export * from './importLazyComponent';
export * from './Clickable';
export * from './ClickableLoader';

0 comments on commit d8acc85

Please sign in to comment.