From 5afe80fc2ed5e6b1edf9524f744c3401f7995552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Stanimirovi=C4=87?= Date: Wed, 4 Dec 2024 20:29:58 +0100 Subject: [PATCH] Update projects/ngrx.io/content/guide/signals/signal-method.md --- projects/ngrx.io/content/guide/signals/signal-method.md | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/ngrx.io/content/guide/signals/signal-method.md b/projects/ngrx.io/content/guide/signals/signal-method.md index eba95b8630..f9bd86ad05 100644 --- a/projects/ngrx.io/content/guide/signals/signal-method.md +++ b/projects/ngrx.io/content/guide/signals/signal-method.md @@ -44,7 +44,6 @@ export class NumbersComponent { ## Automatic Cleanup `signalMethod` uses an `effect` internally to track the Signal changes. - By default, the `effect` runs in the injection context of the caller. In the example above, that is `NumbersComponent`. That means, that the `effect` is automatically cleaned up when the component is destroyed. If the call happens outside an injection context, then the injector of the `signalMethod` is used. This would be the case, if `logDoubledNumber` runs in `ngOnInit`: