Skip to content

Commit 09164f7

Browse files
committed
Merge branch 'dev' of github.com:lowcoder-org/lowcoder into feat/1903-editmode-util
2 parents 4ca237d + 62e83b8 commit 09164f7

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function ViewLoading(props: { padding?: number }) {
4545
);
4646
}
4747

48-
interface RemoteCompReadyAction {
48+
export interface RemoteCompReadyAction {
4949
type: "RemoteCompReady";
5050
comp: Comp;
5151
}

client/packages/lowcoder/src/comps/generators/withMultiContext.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { setFieldsNoTypeCheck } from "util/objectUtils";
2626
import { map } from "./map";
2727
import { paramsEqual, withParamsWithDefault } from "./withParams";
2828
import { LazyCompReadyAction } from "../comps/lazyLoadComp/lazyLoadComp";
29+
import { RemoteCompReadyAction } from "../comps/remoteComp/remoteComp";
2930

3031
export const COMP_KEY = "__comp__";
3132
export const MAP_KEY = "__map__";
@@ -171,6 +172,7 @@ export function withMultiContext<TCtor extends MultiCompConstructor>(VariantComp
171172
&& (
172173
!thisCompMap.hasOwnProperty(action.path[1])
173174
|| isCustomAction<LazyCompReadyAction>(action, "LazyCompReady")
175+
|| isCustomAction<RemoteCompReadyAction>(action, "RemoteCompReady")
174176
)
175177
) {
176178
/**

client/packages/lowcoder/src/comps/generators/withSelectedMultiContext.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { COMP_KEY, MAP_KEY, withMultiContext } from "./withMultiContext";
1414
import { paramsEqual } from "./withParams";
1515
import { LazyCompReadyAction } from "../comps/lazyLoadComp/lazyLoadComp";
1616
import { ModuleReadyAction } from "../comps/moduleComp/moduleComp";
17+
import { RemoteCompReadyAction } from "../comps/remoteComp/remoteComp";
1718

1819
const SELECTED_KEY = "SELECTED";
1920

@@ -75,6 +76,7 @@ export function withSelectedMultiContext<TCtor extends MultiCompConstructor>(
7576
} else if ((
7677
!action.editDSL
7778
&& !isCustomAction<LazyCompReadyAction>(action, "LazyCompReady")
79+
&& !isCustomAction<RemoteCompReadyAction>(action, "RemoteCompReady")
7880
&& !isCustomAction<ModuleReadyAction>(action, "moduleReady")
7981
) || action.path[0] !== MAP_KEY || _.isNil(action.path[1])
8082
) {
@@ -85,6 +87,7 @@ export function withSelectedMultiContext<TCtor extends MultiCompConstructor>(
8587
} else if ((
8688
action.editDSL
8789
|| isCustomAction<LazyCompReadyAction>(action, "LazyCompReady")
90+
|| isCustomAction<RemoteCompReadyAction>(action, "RemoteCompReady")
8891
|| isCustomAction<ModuleReadyAction>(action, "moduleReady")
8992
) && (
9093
action.path[1] === SELECTED_KEY
@@ -104,6 +107,7 @@ export function withSelectedMultiContext<TCtor extends MultiCompConstructor>(
104107
&& (
105108
isCustomAction<ModuleReadyAction>(action, "moduleReady")
106109
|| isCustomAction<LazyCompReadyAction>(action, "LazyCompReady")
110+
|| isCustomAction<RemoteCompReadyAction>(action, "RemoteCompReady")
107111
) && action.path[0] === MAP_KEY
108112
) {
109113
comp = super.reduce(action);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy