slicejs-web-framework 1.0.23 → 1.0.25

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.
@@ -95,16 +95,20 @@ export default class Router {
95
95
  existingComponent.props = { ...existingComponent.props, ...params };
96
96
  await existingComponent.update();
97
97
  }
98
+ await this.renderRoutesComponentsInPage();
98
99
  targetElement.appendChild(existingComponent);
99
100
  } else {
100
101
  const component = await slice.build(componentName, {
101
102
  params,
102
103
  sliceId: sliceId,
103
104
  });
105
+ await this.renderRoutesComponentsInPage();
104
106
  targetElement.innerHTML = '';
105
107
  targetElement.appendChild(component);
106
108
  }
107
109
 
110
+
111
+
108
112
  if (slice.loading) {
109
113
  slice.loading.stop();
110
114
  }
package/Slice/Slice.js CHANGED
@@ -123,7 +123,9 @@ export default class Slice {
123
123
  }
124
124
 
125
125
  this.controller.registerComponent(componentInstance);
126
- this.controller.registerComponentsRecursively(componentInstance);
126
+ if(isVisual){
127
+ this.controller.registerComponentsRecursively(componentInstance);
128
+ }
127
129
 
128
130
  this.logger.logInfo('Slice', `Instance ${componentInstance.sliceId} created`);
129
131
  return componentInstance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slicejs-web-framework",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=20"