@salesforcedevs/dx-components 0.10.1-alpha.28 → 0.10.1-alpha.31

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.28",
3
+ "version": "0.10.1-alpha.31",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -61,6 +61,7 @@ export default class Sidebar extends LightningElement {
61
61
  private searchResults: Result[] = [];
62
62
 
63
63
  private get areResultsEmpty(): boolean {
64
+ console.log('isSearchLoading', this.isSearchLoading)
64
65
  return (
65
66
  (!this.searchResults ||
66
67
  (this.searchResults && this.searchResults.length < 1)) &&
@@ -96,11 +97,17 @@ export default class Sidebar extends LightningElement {
96
97
  );
97
98
  }
98
99
 
99
- connectedCallback() {
100
+ constructor() {
101
+ super()
102
+
100
103
  if (getSidebarSearchParams()) {
104
+ console.log('ok itsloading')
101
105
  this.isSearchLoading = true;
102
106
  }
107
+ }
103
108
 
109
+ connectedCallback() {
110
+ console.log('connected, isloading equals', this.isSearchLoading)
104
111
  this.matchMedia = window.matchMedia(
105
112
  `(max-width: ${MOBILE_SIZE_MATCH})`
106
113
  );