@salesforcedevs/dx-components 0.10.1-alpha.111 → 0.10.1-alpha.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ export default class SidebarSearch extends LightningElement {
|
|
|
42
42
|
|
|
43
43
|
@api
|
|
44
44
|
public fetchMoreResults() {
|
|
45
|
-
if (this.resultList) {
|
|
45
|
+
if (this.resultList?.moreResultsAvailable) {
|
|
46
46
|
this.fetchingMoreResults = true;
|
|
47
47
|
this.resultList.fetchMoreResults();
|
|
48
48
|
}
|
|
@@ -132,7 +132,7 @@ export default class SidebarSearch extends LightningElement {
|
|
|
132
132
|
|
|
133
133
|
console.log(
|
|
134
134
|
"initialized engine directly after engine build",
|
|
135
|
-
this.engine
|
|
135
|
+
this.engine?.state?.query?.q
|
|
136
136
|
);
|
|
137
137
|
|
|
138
138
|
if (this.preloadedState) {
|
|
@@ -142,7 +142,8 @@ export default class SidebarSearch extends LightningElement {
|
|
|
142
142
|
|
|
143
143
|
console.log(
|
|
144
144
|
"initialized engine directly after query dispatch",
|
|
145
|
-
this.engine
|
|
145
|
+
this.engine,
|
|
146
|
+
this.engine?.state?.query?.q
|
|
146
147
|
);
|
|
147
148
|
|
|
148
149
|
if (!this.engine) {
|
|
@@ -214,6 +215,7 @@ export default class SidebarSearch extends LightningElement {
|
|
|
214
215
|
this.dispatchOnChangeEvent(results);
|
|
215
216
|
}
|
|
216
217
|
|
|
218
|
+
console.log("is fetching more results", this.fetchingMoreResults);
|
|
217
219
|
if (!this.fetchingMoreResults) {
|
|
218
220
|
this.dispatchOnLoading(isLoading);
|
|
219
221
|
}
|