tnx-shared 5.3.13 → 5.3.15

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.
@@ -46834,13 +46834,13 @@
46834
46834
  }
46835
46835
  FederationService.prototype.loadRemoteComponent = function (remoteName, componentName, viewContainerRef) {
46836
46836
  return __awaiter(this, void 0, void 0, function () {
46837
- var remoteEntry, options, component, componentFactory, compRef;
46837
+ var remoteEntry, options, component, componentFactory, viewContainer, compRef;
46838
46838
  return __generator(this, function (_a) {
46839
46839
  switch (_a.label) {
46840
46840
  case 0:
46841
46841
  remoteEntry = this.environment.clientDomain.appDomain + "/" + remoteName + "/remoteEntry.js";
46842
46842
  if (!this.environment.production) {
46843
- remoteEntry = this.environment.clientDomain.appDomain[remoteName] + "/remoteEntry.js";
46843
+ remoteEntry = this.environment.clientDomain[remoteName] + "/remoteEntry.js";
46844
46844
  }
46845
46845
  options = {
46846
46846
  remoteName: remoteName,
@@ -46851,7 +46851,9 @@
46851
46851
  case 1:
46852
46852
  component = _a.sent();
46853
46853
  componentFactory = this.resolver.resolveComponentFactory(component[componentName]);
46854
- compRef = viewContainerRef.viewContainerRef.createComponent(componentFactory);
46854
+ viewContainer = viewContainerRef.viewContainerRef;
46855
+ viewContainer.clear();
46856
+ compRef = viewContainer.createComponent(componentFactory);
46855
46857
  return [2 /*return*/, compRef];
46856
46858
  }
46857
46859
  });