@wavemaker-ai/app-ng-runtime 1.0.0-rc.312 → 1.0.0-rc.317

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.
@@ -2780,20 +2780,6 @@
2780
2780
  */
2781
2781
  createCustomInjector(contextKey, context) {
2782
2782
  if (this.customInjectorMap[contextKey]) {
2783
- // Sync the cached context object in place so widgets that are
2784
- // re-instantiated under the same template position (e.g. table cells
2785
- // recreated after a CRUD refresh) see the latest row data via
2786
- // EXPLICIT_CONTEXT. The injector's useFactory captured this reference,
2787
- // so mutating it propagates to fresh constructors that extend their
2788
- // context with EXPLICIT_CONTEXT.
2789
- const cachedCtx = this.customInjectorMap[contextKey].context;
2790
- if (cachedCtx !== context) {
2791
- Object.keys(cachedCtx).forEach(k => {
2792
- if (!(k in context))
2793
- delete cachedCtx[k];
2794
- });
2795
- Object.assign(cachedCtx, context);
2796
- }
2797
2783
  return this.customInjectorMap[contextKey].injector;
2798
2784
  }
2799
2785
  const injector = i0.Injector.create({
@@ -2776,20 +2776,6 @@ class BaseComponent {
2776
2776
  */
2777
2777
  createCustomInjector(contextKey, context) {
2778
2778
  if (this.customInjectorMap[contextKey]) {
2779
- // Sync the cached context object in place so widgets that are
2780
- // re-instantiated under the same template position (e.g. table cells
2781
- // recreated after a CRUD refresh) see the latest row data via
2782
- // EXPLICIT_CONTEXT. The injector's useFactory captured this reference,
2783
- // so mutating it propagates to fresh constructors that extend their
2784
- // context with EXPLICIT_CONTEXT.
2785
- const cachedCtx = this.customInjectorMap[contextKey].context;
2786
- if (cachedCtx !== context) {
2787
- Object.keys(cachedCtx).forEach(k => {
2788
- if (!(k in context))
2789
- delete cachedCtx[k];
2790
- });
2791
- Object.assign(cachedCtx, context);
2792
- }
2793
2779
  return this.customInjectorMap[contextKey].injector;
2794
2780
  }
2795
2781
  const injector = Injector.create({