Skip to content

Commit

Permalink
Update projects/ngrx.io/content/guide/signals/signal-method.md
Browse files Browse the repository at this point in the history
  • Loading branch information
markostanimirovic authored Dec 4, 2024
1 parent 86fb87e commit 5afe80f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion projects/ngrx.io/content/guide/signals/signal-method.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down

0 comments on commit 5afe80f

Please sign in to comment.