@forgeroute/ui 0.5.15 → 0.5.16

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.
@@ -3201,11 +3201,11 @@ var PaymentSquareBodyComponent = class PaymentSquareBodyComponent {
3201
3201
  this.ctx().setBusy(false);
3202
3202
  }
3203
3203
  };
3204
- effect(() => {
3204
+ effect((onCleanup) => {
3205
3205
  const config = this.config();
3206
3206
  untracked(() => config.attachControls(controls));
3207
+ onCleanup(() => config.detachControls(controls));
3207
3208
  });
3208
- inject(DestroyRef).onDestroy(() => this.config().detachControls(controls));
3209
3209
  effect(() => {
3210
3210
  const amount = this.amountValue();
3211
3211
  if (amount != null) untracked(() => this.lastAmount.set(amount));