Skip to content

Commit 103152d

Browse files
fix appEditor showing while loading issue
1 parent 8d73f12 commit 103152d

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

client/packages/lowcoder-sdk-webpack-bundle/webpack.config.cjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ module.exports = {
9696
output: {
9797
path: path.resolve(__dirname, 'dist'),
9898
// publicPath: "https://sdk.lowcoder.cloud/",
99-
publicPath: "/",
99+
publicPath: "https://webviewer.lowcoder.cloud/",
100100
filename: '[name].bundle.js',
101101
clean: true,
102102
},
@@ -113,11 +113,11 @@ module.exports = {
113113
path: path.resolve(__dirname, 'bundle'),
114114
filename: 'bundle.js'
115115
}),
116-
new CopyPlugin({
117-
patterns: [
118-
"./index.html",
119-
],
120-
}),
116+
// new CopyPlugin({
117+
// patterns: [
118+
// "./index.html",
119+
// ],
120+
// }),
121121
isVisualizerEnabled && new BundleAnalyzerPlugin()
122122
],
123123
optimization: {

client/packages/lowcoder/src/comps/comps/rootComp.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,13 @@ function RootView(props: RootViewProps) {
110110
};
111111
}, [editorState, propertySectionState]);
112112

113-
if (!editorState) {
114-
if (isModuleRoot) {
115-
return <ModuleLoading />;
116-
}
117-
return <EditorSkeletonView />;
118-
}
113+
// if (!editorState) {
114+
// if (isModuleRoot) {
115+
// return <ModuleLoading />;
116+
// }
117+
// return <EditorSkeletonView />;
118+
// }
119+
if(!editorState) return <ModuleLoading />;
119120

120121
return (
121122
<div {...divProps}>
@@ -125,7 +126,7 @@ function RootView(props: RootViewProps) {
125126
{Object.keys(comp.children.queries.children).map((key) => (
126127
<div key={key}>{comp.children.queries.children[key].getView()}</div>
127128
))}
128-
<Suspense fallback={<EditorSkeletonView />}>
129+
<Suspense fallback={null}>
129130
<EditorView uiComp={comp.children.ui} preloadComp={comp.children.preload} />
130131
</Suspense>
131132
</EditorContext.Provider>

client/packages/lowcoder/src/pages/editor/AppEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default function AppEditor() {
136136
return (
137137
<ErrorBoundary>
138138
{showAppSnapshot ? (
139-
<Suspense fallback={<EditorSkeletonView />}>
139+
<Suspense fallback={null}>
140140
<AppSnapshot
141141
currentAppInfo={{
142142
...appInfo,
@@ -145,7 +145,7 @@ export default function AppEditor() {
145145
/>
146146
</Suspense>
147147
) : (
148-
<Suspense fallback={<EditorSkeletonView />}>
148+
<Suspense fallback={null}>
149149
<AppEditorInternalView
150150
appInfo={appInfo}
151151
readOnly={readOnly}

0 commit comments

Comments
 (0)