@salesforcedevs/dx-components 0.10.1-alpha.112 → 0.10.1-alpha.116

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.10.1-alpha.112",
3
+ "version": "0.10.1-alpha.116",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -42,7 +42,8 @@ export default class SidebarSearch extends LightningElement {
42
42
 
43
43
  @api
44
44
  public fetchMoreResults() {
45
- if (this.resultList) {
45
+ console.log('fetch more results (resultList)', this.resultList)
46
+ if (this.resultList?.state?.moreResultsAvailable) {
46
47
  this.fetchingMoreResults = true;
47
48
  this.resultList.fetchMoreResults();
48
49
  }
@@ -132,7 +133,7 @@ export default class SidebarSearch extends LightningElement {
132
133
 
133
134
  console.log(
134
135
  "initialized engine directly after engine build",
135
- this.engine.state.query.q
136
+ this.engine?.state?.query?.q
136
137
  );
137
138
 
138
139
  if (this.preloadedState) {
@@ -143,7 +144,7 @@ export default class SidebarSearch extends LightningElement {
143
144
  console.log(
144
145
  "initialized engine directly after query dispatch",
145
146
  this.engine,
146
- this.engine.state.query.q
147
+ this.engine?.state?.query?.q
147
148
  );
148
149
 
149
150
  if (!this.engine) {
@@ -215,6 +216,7 @@ export default class SidebarSearch extends LightningElement {
215
216
  this.dispatchOnChangeEvent(results);
216
217
  }
217
218
 
219
+ console.log("is fetching more results", this.fetchingMoreResults);
218
220
  if (!this.fetchingMoreResults) {
219
221
  this.dispatchOnLoading(isLoading);
220
222
  }