File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
lowcoder/src/comps/queries Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -1692,11 +1692,12 @@ class CodeNode extends AbstractNode {
16921692 // if query is dependent on itself, mark as ready
16931693 if (pathsArr?.[0] === options?.queryName)
16941694 return;
1695+ // TODO: check if this is needed after removing lazy load
16951696 // wait for lazy loaded comps to load before executing query on page load
1696- if (value && !Object.keys(value).length && paths.size) {
1697- isFetching = true;
1698- ready = false;
1699- }
1697+ // if (value && !Object.keys(value).length && paths.size) {
1698+ // isFetching = true;
1699+ // ready = false;
1700+ // }
17001701 if (_.has(value, IS_FETCHING_FIELD)) {
17011702 isFetching = isFetching || value.isFetching === true;
17021703 }
Original file line number Diff line number Diff line change @@ -176,11 +176,12 @@ export class CodeNode extends AbstractNode<ValueAndMsg<unknown>> {
176176 // if query is dependent on itself, mark as ready
177177 if ( pathsArr ?. [ 0 ] === options ?. queryName ) return ;
178178
179+ // TODO: check if this is needed after removing lazy load
179180 // wait for lazy loaded comps to load before executing query on page load
180- if ( value && ! Object . keys ( value ) . length && paths . size ) {
181- isFetching = true ;
182- ready = false ;
183- }
181+ // if (value && !Object.keys(value).length && paths.size) {
182+ // isFetching = true;
183+ // ready = false;
184+ // }
184185 if ( _ . has ( value , IS_FETCHING_FIELD ) ) {
185186 isFetching = isFetching || value . isFetching === true ;
186187 }
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ function QueryView(props: QueryViewProps) {
335335 ) {
336336 setTimeout ( ( ) => {
337337 comp . dispatch ( deferAction ( executeQueryAction ( { } ) ) ) ;
338- } , 300 ) ;
338+ } , 600 ) ;
339339 }
340340
341341 if ( getTriggerType ( comp ) === "onTimeout" ) {
You can’t perform that action at this time.
0 commit comments