Skip to content

Commit fd643d0

Browse files
fix infinite loading on component docs and playground
1 parent ebdc031 commit fd643d0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

client/packages/lowcoder/src/pages/ComponentDoc/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
import { ExampleContext } from "./ExampleContext";
1515
import { trans } from "i18n";
1616
import { Helmet } from "react-helmet";
17+
import { LoadingBarHideTrigger } from "@lowcoder-ee/util/hideLoading";
1718

1819
type CompInfo = UICompManifest & { key: string };
1920
const groups: Partial<Record<UICompCategory, CompInfo[]>> = {};
@@ -109,6 +110,7 @@ export default function ComponentDoc() {
109110
<link rel="iframely" type="text/html" href={window.location.href} media="(aspect-ratio: 1280/720)"/>,
110111
</Helmet>
111112
<Wrapper>
113+
<LoadingBarHideTrigger />
112114
<div className="main">
113115
<div className="sidebar">
114116
<div className="search">

client/packages/lowcoder/src/pages/ComponentPlayground/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { EditorContext, EditorState } from "comps/editorState";
88
import { RootComp } from "comps/comps/rootComp";
99
import { useMemo } from "react";
1010
import { lazyLoadComp } from "@lowcoder-ee/comps/comps/lazyLoadComp/lazyLoadComp";
11+
import { LoadingBarHideTrigger } from "@lowcoder-ee/util/hideLoading";
1112

1213
type CompInfo = UICompManifest & { key: string };
1314
const groups: Partial<Record<UICompCategory, CompInfo[]>> = {};
@@ -72,6 +73,7 @@ export default function ComponentPlayground() {
7273

7374
return (
7475
<Wrapper>
76+
<LoadingBarHideTrigger />
7577
<div className="content">
7678
<EditorContext.Provider value={editorState}>
7779
<CompPlayground

0 commit comments

Comments
 (0)