@salesforcedevs/dx-components 0.10.1-alpha.127 → 0.10.1-alpha.130

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.127",
3
+ "version": "0.10.1-alpha.130",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -95,6 +95,8 @@ export default class SidebarSearch extends LightningElement {
95
95
  this.value = getSidebarSearchParams() || "";
96
96
  }
97
97
 
98
+ queryConfigValue: string | null = null;
99
+
98
100
  renderedCallback() {
99
101
  // in prod some of the critical coveo configuration attributes seem to arrive later
100
102
  // so I needed to put this coveo startup flow here where we can wait for them to arrive
@@ -114,6 +116,16 @@ export default class SidebarSearch extends LightningElement {
114
116
  );
115
117
  }
116
118
 
119
+ const queryConfigValue = JSON.stringify(this.coveoAdvancedQueryConfig);
120
+ console.log('query config value', queryConfigValue);
121
+ if (this.queryConfigValue !== queryConfigValue) {
122
+ if (this.queryConfigValue && this.engine) {
123
+ console.log('setting query config again')
124
+ this.setAdvancedFilters(this.engine);
125
+ }
126
+ this.queryConfigValue = queryConfigValue;
127
+ }
128
+
117
129
  // If this is the first render and there is a search value, trigger
118
130
  // term highlighting
119
131
  if (!this.didRender && this.value) {